Skip to content

Commit

Permalink
Update Amazon Linux AMI again, plus a more reproducible process for f…
Browse files Browse the repository at this point in the history
…uture updates

Signed-off-by: Irving Popovetsky <[email protected]>
  • Loading branch information
Irving Popovetsky committed Jan 20, 2018
1 parent 4aefb61 commit 56713f4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 12 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,21 @@ Yes, it is significantly more robust and easier to operate.

Contributions are welcomed!

# Developer notes

## RegionMap
To update the region map execute the following lines in your terminal and then paste the results into the `AWSRegion2AMI` mappings section of the template:

```bash
AMAZON_RELEASE='amzn-ami-hvm-2017.09.1.20180115-x86_64-gp2'
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=${AMAZON_RELEASE}" \
--query "Images[0].ImageId" --output "text")
printf " $region:\n AMI: $ami\n"; done
```

# Credits

This project was inspired by the work of [Levi Smith](https://github.com/TheFynx) of the Hearst Automation Team and published at [HearstAT/cfn_backendless_chef](https://github.com/HearstAT/cfn_backendless_chef). Thanks Levi!
Expand Down
38 changes: 26 additions & 12 deletions backendless_chef.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS Native Chef Server v3.1.2
Description: AWS Native Chef Server v3.1.3

Parameters:
# Required Parameters
Expand Down Expand Up @@ -245,22 +245,36 @@ Conditions:
# - Support upstart as the init system, or else rewrite the below aws-signing-proxy service defitinion into systemd
Mappings:
AWSRegion2AMI:
ca-central-1:
AMI: ami-61f97c05
eu-west-1:
AMI: ami-e487179d
eu-west-2:
AMI: ami-51809835
ap-south-1:
AMI: ami-531a4c3c
eu-west-3:
AMI: ami-fe03b483
AMI: ami-8ee056f3
eu-west-2:
AMI: ami-403e2524
eu-west-1:
AMI: ami-d834aba1
ap-northeast-2:
AMI: ami-863090e8
ap-northeast-1:
AMI: ami-ceafcba8
sa-east-1:
AMI: ami-84175ae8
ca-central-1:
AMI: ami-a954d1cd
ap-southeast-1:
AMI: ami-68097514
ap-southeast-2:
AMI: ami-942dd1f6
eu-central-1:
AMI: ami-5652ce39
us-east-1:
AMI: ami-cb9ec1b1
AMI: ami-97785bed
us-east-2:
AMI: ami-caaf84af
AMI: ami-f63b1193
us-west-1:
AMI: ami-95eeeef5
AMI: ami-824c4ee2
us-west-2:
AMI: ami-32cf7b4a
AMI: ami-f2d3638a

Resources:
# Frontend Autoscale Groups
Expand Down

0 comments on commit 56713f4

Please sign in to comment.