Skip to content

Commit

Permalink
[Security] ecs/cluster - Update Amazon Linux 2 optimized for ECS to 2…
Browse files Browse the repository at this point in the history
…0190709 (widdix#347)
  • Loading branch information
michaelwittig authored Sep 5, 2019
1 parent 06a0a03 commit 305efd6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ To update the region map execute the following lines in your terminal:

```
$ regions=$(aws ec2 describe-regions --query "Regions[].RegionName" --output text)
$ for region in $regions; do ami=$(aws --region $region ec2 describe-images --filters "Name=name,Values=amzn2-ami-ecs-hvm-2.0.20190709-x86_64-ebs" --query "Images[0].ImageId" --output "text"); printf "'$region':\n ECSAMI: '$ami'\n"; done
$ for region in $regions; do ami=$(aws --region $region ec2 describe-images --filters "Name=name,Values=amzn2-ami-ecs-hvm-2.0.20190815-x86_64-ebs" --query "Images[0].ImageId" --output "text"); printf "'$region':\n ECSAMI: '$ami'\n"; done
```
36 changes: 19 additions & 17 deletions ecs/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,39 +201,41 @@ Parameters:
Mappings:
RegionMap:
'eu-north-1':
ECSAMI: 'ami-059aa04f0c253ad6b'
ECSAMI: 'ami-063b45c1e31fdc5d2'
'ap-south-1':
ECSAMI: 'ami-0a8bf4e187339e2c1'
ECSAMI: 'ami-0b7f1d57770573a75'
'eu-west-3':
ECSAMI: 'ami-0d260f3e5ccd06043'
ECSAMI: 'ami-084e49fa6ca9c8794'
'eu-west-2':
ECSAMI: 'ami-0de1dc478496a9e9b'
ECSAMI: 'ami-010624faf51b049d3'
'eu-west-1':
ECSAMI: 'ami-0ae254c8a2d3346a7'
ECSAMI: 'ami-02bf9e90a6e30dc74'
'ap-northeast-2':
ECSAMI: 'ami-0accbb5aa909be7bf'
ECSAMI: 'ami-000fbda700ba8fe9d'
'me-south-1':
ECSAMI: 'ami-0375ec9d8a8bcf612'
'ap-northeast-1':
ECSAMI: 'ami-04a735b489d2a0320'
ECSAMI: 'ami-0e37e42dff65024ae'
'sa-east-1':
ECSAMI: 'ami-038707d64e5b8e7ba'
ECSAMI: 'ami-051d98f19acea0389'
'ca-central-1':
ECSAMI: 'ami-01c07ee95e77abba8'
ECSAMI: 'ami-052de4ecee980719c'
'ap-east-1':
ECSAMI: 'ami-02252d984c7e3595d'
ECSAMI: 'ami-05bfc466e50bdfb65'
'ap-southeast-1':
ECSAMI: 'ami-05c6d22d98f97471c'
ECSAMI: 'ami-05357ea4dad5e2cf4'
'ap-southeast-2':
ECSAMI: 'ami-039bb4c3a7946ce19'
ECSAMI: 'ami-0c7dea114481e059d'
'eu-central-1':
ECSAMI: 'ami-0650e7d86452db33b'
ECSAMI: 'ami-0e1d30823ff9f8459'
'us-east-1':
ECSAMI: 'ami-0fac5486e4cff37f4'
ECSAMI: 'ami-0b16d80945b1a9c7d'
'us-east-2':
ECSAMI: 'ami-0dca97e7cde7be3d5'
ECSAMI: 'ami-0e7c12c1bedd6bf21'
'us-west-1':
ECSAMI: 'ami-0c6e63b58aac1048e'
ECSAMI: 'ami-08a12265d9e050d57'
'us-west-2':
ECSAMI: 'ami-0e5e051fd0b505db6'
ECSAMI: 'ami-0e434a58221275ed4'
Conditions:
HasKeyName: !Not [!Equals [!Ref KeyName, '']]
HasIAMUserSSHAccess: !Equals [!Ref IAMUserSSHAccess, 'true']
Expand Down

0 comments on commit 305efd6

Please sign in to comment.