Hi,
currently the ARN pattern returned from an elasticbeanstalk environment does not include the application name.
See Beanstalk ARN pattern reference
Expected
arn:aws:elasticbeanstalk:REGION:ACCOUNT-ID:environment/APPLICATION-NAME/ENVIRONMENT-NAME
Actual
arn:aws:elasticbeanstalk:REGION:ACCOUNT-ID:environment/ENVIRONMENT-NAME
I think with some hints I can provide a fix for this issue. Unfortunately I am a bit unsure where the additional field application name best fits into the current implementation.
The call to describe_environments returns the application name field but I am not sure how to access it in the environment class!