01 Run describe-applications command (OSX/Linux/UNIX) with custom query filters to list the names of all the Amazon Elastic Beanstalk applications deployed in the selected AWS cloud region:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
aws elasticbeanstalk describe-applications
--region us-east-1
--query 'Applications[*].ApplicationName'
02 The command output should return an array with the requested application name(s):
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[
"cc-project5-web-application",
"cc-nodejs-main-application"
]
03 Run describe-environments command (OSX/Linux/UNIX) using the name of the Elastic Beanstalk application that you want to examine as the identifier parameter and custom query filters to describe the name of the Amazon Elastic Beanstalk environment created for the selected application:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
aws elasticbeanstalk describe-environments
--region us-east-1
--application-name cc-project5-web-application
--no-include-deleted
--query 'Environments[*].EnvironmentName'
04 The command output should return the name of the requested environment:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[
"cc-project5-web-environment"
]
05 Run describe-configuration-settings command (OSX/Linux/UNIX) to describe the notification endpoint (i.e. email address) configured to receive notifications from the selected Amazon Elastic Beanstalk environment:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
aws elasticbeanstalk describe-configuration-settings
--region us-east-1
--environment-name cc-project5-web-environment
--application-name cc-project5-web-application
--query 'ConfigurationSettings[*].OptionSettings[?(OptionName==`Notification Endpoint`)].Value | []'
06 The command output should return the requested notification endpoint:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[]
If the
describe-configuration-settings command output returns an empty array (i.e. []), as shown in the output example above, there is no Amazon SNS topic associated with the application environment, therefore the selected Amazon Elastic Beanstalk environment is not configured to send email notifications for important events.
07 Repeat steps no. 5 and 6 to check the email notifications configuration for other Amazon Elastic Beanstalk environments created for the selected application.
08 Repeat steps no. 3 – 7 for each Amazon Elastic Beanstalk application deployed in the selected AWS region.
09 Change the AWS cloud region by updating the --region command parameter value and repeat steps no. 1 – 8 to perform the entire audit process for other regions.