awslabs/amazon-ecs-nodejs-microservices

There is no AMIID for ap-northeast-2

imjanghyuk opened this issue · 2 comments

I can't make CloudFormation stack.
When I click create button, 'Template validation error: Template error: Unable to get mapping for AWSRegionToAMI::ap-northeast-2::AMIID' error throws.

I faced exactly same problem. so I added AMIID for ap-northeast-2 into the esc.yml and I used it. The ECS-Optimized AMIID list is in this doc

Just add this line to esc.yml files.

Mappings:
  AWSRegionToAMI:
    ap-northeast-2:
      AMIID: ami-0060ad36f655af38b
    ...

We have fixed this by changing it to pull the latest AMI from a SSM parameter store key, rather than having a hard coded AMI for each region: https://github.com/awslabs/amazon-ecs-nodejs-microservices/blob/master/3-microservices/infrastructure/ecs.yml#L20-L23

Thanks for reporting!