2026/03/04 - AWS Elastic Beanstalk - 2 updated api methods
Changes As part of this release, Beanstalk introduce a new info type - analyze for request environment info and retrieve environment info operations. When customers request an Al analysis, Elastic Beanstalk runs a script on an instance in their environment and returns an analysis of events, health and logs.
{'InfoType': {'analyze'}}
Initiates a request to compile the specified type of information of the deployed environment.
Setting the InfoType to tail compiles the last lines from the application server log files of every Amazon EC2 instance in your environment.
Setting the InfoType to bundle compresses the application server log files for every Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs.
Setting the InfoType to analyze collects recent events, instance health, and logs from your environment and sends them to Amazon Bedrock in your account to generate diagnostic insights and recommended next steps.
Use RetrieveEnvironmentInfo to obtain the set of logs.
Related Topics
RetrieveEnvironmentInfo
See also: AWS API Documentation
Request Syntax
client.request_environment_info(
EnvironmentId='string',
EnvironmentName='string',
InfoType='tail'|'bundle'|'analyze'
)
string
The ID of the environment of the requested data.
If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
string
The name of the environment of the requested data.
If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
string
[REQUIRED]
The type of information to request.
None
{'InfoType': {'analyze'}}
Response {'EnvironmentInfo': {'InfoType': {'analyze'}}}
Retrieves the compiled information from a RequestEnvironmentInfo request.
Related Topics
RequestEnvironmentInfo
See also: AWS API Documentation
Request Syntax
client.retrieve_environment_info(
EnvironmentId='string',
EnvironmentName='string',
InfoType='tail'|'bundle'|'analyze'
)
string
The ID of the data's environment.
If no such environment is found, returns an InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
string
The name of the data's environment.
If no such environment is found, returns an InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.
string
[REQUIRED]
The type of information to retrieve.
dict
Response Syntax
{
'EnvironmentInfo': [
{
'InfoType': 'tail'|'bundle'|'analyze',
'Ec2InstanceId': 'string',
'SampleTimestamp': datetime(2015, 1, 1),
'Message': 'string'
},
]
}
Response Structure
(dict) --
Result message containing a description of the requested environment info.
EnvironmentInfo (list) --
The EnvironmentInfoDescription of the environment.
(dict) --
The information retrieved from the Amazon EC2 instances.
InfoType (string) --
The type of information retrieved.
Ec2InstanceId (string) --
The Amazon EC2 Instance ID for this information.
SampleTimestamp (datetime) --
The time stamp when this information was retrieved.
Message (string) --
The retrieved information. Currently contains a presigned Amazon S3 URL. The files are deleted after 15 minutes.
Anyone in possession of this URL can access the files before they are deleted. Make the URL available only to trusted parties.