scopely-devops / skew

Apache License 2.0
242 stars 70 forks source link

Invalid ARN pattern for elasticbeanstalk environment #155

Closed tobHai closed 4 years ago

tobHai commented 4 years ago

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!

tobHai commented 4 years ago

Fixed in #163