CmdID / aws / aws appconfig
aws appconfig get-environment
Retrieves information about an environment. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To retrieve environment details
The following get-environment example returns the details and state of the specified environment.
aws appconfig get-environment --application-id 339ohji --environment-id 54j1r29Identify--application-idThe ID of the application that includes the environment you want to get.--environment-idThe ID of the environment that you want to get.Its output
{
"ApplicationId": "339ohji",
"Id": "54j1r29",
"Name": "Example-Environment",
"State": "ReadyForDeployment"
}For more information, see Step 2: Creating an environment in the AWS AppConfig User Guide.
Options
--application-idThe ID of the application that includes the environment you want to get.--environment-idThe ID of the environment that you want to get.