diff options
author | Mike Crute <mike@crute.us> | 2017-12-25 05:03:53 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2017-12-25 05:03:53 +0000 |
commit | eb26234ebcb842419ca052dcfdb3e3259b7d1102 (patch) | |
tree | 221f7725451da9d5d9642dd747afac1779684be4 | |
parent | 0a69d4dfe9a666bb8694b712a46cffaca95ae856 (diff) | |
download | alpine-ec2-ami-eb26234ebcb842419ca052dcfdb3e3259b7d1102.tar.bz2 alpine-ec2-ami-eb26234ebcb842419ca052dcfdb3e3259b7d1102.tar.xz alpine-ec2-ami-eb26234ebcb842419ca052dcfdb3e3259b7d1102.zip |
Add all regions except eu-west-3
-rw-r--r-- | README.md | 40 | ||||
-rw-r--r-- | alpine-ami.yaml | 34 | ||||
-rw-r--r-- | release.yaml | 28 |
3 files changed, 63 insertions, 39 deletions
@@ -5,8 +5,8 @@ built and supported.** | |||
5 | 5 | ||
6 | This repository contains a packer file and a script to create an EC2 AMI | 6 | This repository contains a packer file and a script to create an EC2 AMI |
7 | containing Alpine Linux. The AMI is designed to work with most EC2 features | 7 | containing Alpine Linux. The AMI is designed to work with most EC2 features |
8 | natively and thus should launch on any instance type. If anything is missing | 8 | such as Elastic Network Adapters and NVME EBS volumes by default. If anything |
9 | please report a bug. | 9 | is missing please report a bug. |
10 | 10 | ||
11 | This image can be launched on any modern instance type. Including T2, M5, C5, | 11 | This image can be launched on any modern instance type. Including T2, M5, C5, |
12 | I3, R4, P2, P3, X1, X1e, D2. Other instances may also work but have not been | 12 | I3, R4, P2, P3, X1, X1e, D2. Other instances may also work but have not been |
@@ -18,27 +18,27 @@ be configured to use whatever SSH keys you chose when you launched the image. | |||
18 | If user data is specified it must be a shell script that begins with `#!`. If a | 18 | If user data is specified it must be a shell script that begins with `#!`. If a |
19 | script is provided it will be executed as root after the network is configured. | 19 | script is provided it will be executed as root after the network is configured. |
20 | 20 | ||
21 | **Note:** The AMI is not yet available in all regions. This file and | 21 | **Note:** This image will be updated as Alpine Linux changes over time and as |
22 | AWS adds regions. This file and | ||
22 | [releases.yaml](https://github.com/mcrute/alpine-ec2-ami/blob/master/releases.yaml) | 23 | [releases.yaml](https://github.com/mcrute/alpine-ec2-ami/blob/master/releases.yaml) |
23 | will be updated as new regions are made available. | 24 | will be updated as new regions are made available. |
24 | 25 | ||
25 | | Alpine Version | Region Code | Region Name | AMI ID | | 26 | | Alpine Version | Region Code | AMI ID | |
26 | | -------------- | -------------- | ------------------------- | --------------------------------------------------------------------------------------------- | | 27 | | -------------- | ----------- | ------ | |
27 | | 3.7 | us-east-1 | US East (N. Virginia) | [ami-XXXXXXXX](https://us-east-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 28 | | 3.7 | ca-central-1 | [ami-ba3a80de](https://ca-central-1.console.aws.amazon.com/ec2/home#launchAmi=ami-ba3a80de) | |
28 | | 3.7 | us-east-2 | US East (Ohio) | [ami-XXXXXXXX](https://us-east-2.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 29 | | 3.7 | us-west-1 | [ami-971f19f7](https://us-west-1.console.aws.amazon.com/ec2/home#launchAmi=ami-971f19f7) | |
29 | | 3.7 | us-west-1 | US West (N. California) | [ami-XXXXXXXX](https://us-west-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 30 | | 3.7 | eu-west-2 | [ami-d8b2abbc](https://eu-west-2.console.aws.amazon.com/ec2/home#launchAmi=ami-d8b2abbc) | |
30 | | 3.7 | us-west-2 | US West (Oregon) | [ami-032b877b](https://us-west-2.console.aws.amazon.com/ec2/home#launchAmi=ami-032b877b) | | 31 | | 3.7 | sa-east-1 | [ami-e233738e](https://sa-east-1.console.aws.amazon.com/ec2/home#launchAmi=ami-e233738e) | |
31 | | 3.7 | ca-central-1 | Canada (Central) | [ami-XXXXXXXX](https://ca-central-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 32 | | 3.7 | eu-west-1 | [ami-5589062c](https://eu-west-1.console.aws.amazon.com/ec2/home#launchAmi=ami-5589062c) | |
32 | | 3.7 | eu-central-1 | EU (Frankfurt) | [ami-XXXXXXXX](https://eu-central-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 33 | | 3.7 | ap-south-1 | [ami-77a8e218](https://ap-south-1.console.aws.amazon.com/ec2/home#launchAmi=ami-77a8e218) | |
33 | | 3.7 | eu-west-1 | EU (Ireland) | [ami-XXXXXXXX](https://eu-west-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 34 | | 3.7 | ap-southeast-1 | [ami-4fc8a133](https://ap-southeast-1.console.aws.amazon.com/ec2/home#launchAmi=ami-4fc8a133) | |
34 | | 3.7 | eu-west-2 | EU (London) | [ami-XXXXXXXX](https://eu-west-2.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 35 | | 3.7 | ap-southeast-2 | [ami-afdb2bcd](https://ap-southeast-2.console.aws.amazon.com/ec2/home#launchAmi=ami-afdb2bcd) | |
35 | | 3.7 | eu-west-3 | EU (Paris) | [ami-XXXXXXXX](https://eu-west-3.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 36 | | 3.7 | ap-northeast-1 | [ami-0cd5416a](https://ap-northeast-1.console.aws.amazon.com/ec2/home#launchAmi=ami-0cd5416a) | |
36 | | 3.7 | ap-northeast-1 | Asia Pacific (Tokyo) | [ami-XXXXXXXX](https://ap-northeast-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 37 | | 3.7 | ap-northeast-2 | [ami-909c3dfe](https://ap-northeast-2.console.aws.amazon.com/ec2/home#launchAmi=ami-909c3dfe) | |
37 | | 3.7 | ap-northeast-2 | Asia Pacific (Seoul) | [ami-XXXXXXXX](https://ap-northeast-2.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 38 | | 3.7 | eu-central-1 | [ami-5cb92e33](https://eu-central-1.console.aws.amazon.com/ec2/home#launchAmi=ami-5cb92e33) | |
38 | | 3.7 | ap-southeast-1 | Asia Pacific (Singapore) | [ami-XXXXXXXX](https://ap-southeast-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 39 | | 3.7 | us-east-1 | [ami-c3dc9ab9](https://us-east-1.console.aws.amazon.com/ec2/home#launchAmi=ami-c3dc9ab9) | |
39 | | 3.7 | ap-southeast-2 | Asia Pacific (Sydney) | [ami-XXXXXXXX](https://ap-southeast-2.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 40 | | 3.7 | us-west-2 | [ami-6ac26d12](https://us-west-2.console.aws.amazon.com/ec2/home#launchAmi=ami-6ac26d12) | |
40 | | 3.7 | ap-south-1 | Asia Pacific (Mumbai) | [ami-XXXXXXXX](https://ap-south-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | 41 | | 3.7 | us-east-2 | [ami-fc8aa299](https://us-east-2.console.aws.amazon.com/ec2/home#launchAmi=ami-fc8aa299) | |
41 | | 3.7 | sa-east-1 | South America (São Paulo) | [ami-XXXXXXXX](https://sa-east-1.console.aws.amazon.com/ec2/home#launchAmi=ami-XXXXXXXX) | | ||
42 | 42 | ||
43 | ## Caveats | 43 | ## Caveats |
44 | 44 | ||
diff --git a/alpine-ami.yaml b/alpine-ami.yaml index 26b75b1..d07a59a 100644 --- a/alpine-ami.yaml +++ b/alpine-ami.yaml | |||
@@ -1,7 +1,16 @@ | |||
1 | variables: | 1 | variables: |
2 | security_group: "" | 2 | security_group: "" |
3 | subnet: "" | 3 | subnet: "" |
4 | destination_regions: "" | 4 | |
5 | # Treat this similar to a ABUILD pkgrel variable and increment with every | ||
6 | # release. Packer will notice an exiting AMI at build start and fail unless | ||
7 | # it is rmoved. To prevent a period of time where no Alpine AMI exists, | ||
8 | # create a new variant. Old AMIs should be pruned at some point. | ||
9 | ami_release: "1" | ||
10 | |||
11 | # Overriding this requires validating that the installation script still | ||
12 | # works as expected. It probably does but stuff changes between major | ||
13 | # version. | ||
5 | alpine_release: "3.7" | 14 | alpine_release: "3.7" |
6 | 15 | ||
7 | # Don't override this without a good reason and if you do just make sure it | 16 | # Don't override this without a good reason and if you do just make sure it |
@@ -21,17 +30,32 @@ builders: | |||
21 | launch_block_device_mappings: | 30 | launch_block_device_mappings: |
22 | - volume_type: "gp2" | 31 | - volume_type: "gp2" |
23 | device_name: "{{user `volume_name`}}" | 32 | device_name: "{{user `volume_name`}}" |
24 | delete_on_termination: false | 33 | delete_on_termination: true |
25 | volume_size: 5 | 34 | volume_size: 5 |
26 | 35 | ||
27 | # Output AMI Settings | 36 | # Output AMI Settings |
28 | ena_support: true | 37 | ena_support: true |
29 | ami_name: "Alpine-{{user `alpine_release`}}-Hardened-EC2" | 38 | ami_name: "Alpine-{{user `alpine_release`}}-r{{user `ami_release`}}-Hardened-EC2" |
30 | ami_description: "Alpine Linux {{user `alpine_release`}} Release with Hardened Kernel and EC2 Optimizations" | 39 | ami_description: "Alpine Linux {{user `alpine_release`}}-r{{user `ami_release`}} Release with Hardened Kernel and EC2 Optimizations" |
31 | ami_groups: | 40 | ami_groups: |
32 | - "all" | 41 | - "all" |
33 | ami_virtualization_type: "hvm" | 42 | ami_virtualization_type: "hvm" |
34 | ami_regions: "{{user `destination_regions`}}" | 43 | ami_regions: |
44 | - us-east-1 | ||
45 | - us-east-2 | ||
46 | - us-west-1 | ||
47 | - us-west-2 | ||
48 | - ca-central-1 | ||
49 | - eu-central-1 | ||
50 | - eu-west-1 | ||
51 | - eu-west-2 | ||
52 | # - eu-west-3 | ||
53 | - ap-northeast-1 | ||
54 | - ap-northeast-2 | ||
55 | - ap-southeast-1 | ||
56 | - ap-southeast-2 | ||
57 | - ap-south-1 | ||
58 | - sa-east-1 | ||
35 | ami_root_device: | 59 | ami_root_device: |
36 | source_device_name: "{{user `volume_name`}}" | 60 | source_device_name: "{{user `volume_name`}}" |
37 | device_name: "/dev/xvda" | 61 | device_name: "/dev/xvda" |
diff --git a/release.yaml b/release.yaml index 66d80c7..faddaf6 100644 --- a/release.yaml +++ b/release.yaml | |||
@@ -4,18 +4,18 @@ Alpine-3.7-Hardened-EC2: | |||
4 | kernel-flavor: hardened | 4 | kernel-flavor: hardened |
5 | ami-release-date: "2017-12-25 03:02:00" | 5 | ami-release-date: "2017-12-25 03:02:00" |
6 | region-identifiers: | 6 | region-identifiers: |
7 | #us-east-1: ami-XXXXXXXX | 7 | ap-northeast-1: ami-0cd5416a |
8 | #us-east-2: ami-XXXXXXXX | 8 | ap-northeast-2: ami-909c3dfe |
9 | #us-west-1: ami-XXXXXXXX | 9 | ap-south-1: ami-77a8e218 |
10 | us-west-2: ami-032b877b | 10 | ap-southeast-1: ami-4fc8a133 |
11 | #ca-central-1: ami-XXXXXXXX | 11 | ap-southeast-2: ami-afdb2bcd |
12 | #eu-central-1: ami-XXXXXXXX | 12 | ca-central-1: ami-ba3a80de |
13 | #eu-west-1: ami-XXXXXXXX | 13 | eu-central-1: ami-5cb92e33 |
14 | #eu-west-2: ami-XXXXXXXX | 14 | eu-west-1: ami-5589062c |
15 | eu-west-2: ami-d8b2abbc | ||
15 | #eu-west-3: ami-XXXXXXXX | 16 | #eu-west-3: ami-XXXXXXXX |
16 | #ap-northeast-1: ami-XXXXXXXX | 17 | sa-east-1: ami-e233738e |
17 | #ap-northeast-2: ami-XXXXXXXX | 18 | us-east-1: ami-c3dc9ab9 |
18 | #ap-southeast-1: ami-XXXXXXXX | 19 | us-east-2: ami-fc8aa299 |
19 | #ap-southeast-2: ami-XXXXXXXX | 20 | us-west-1: ami-971f19f7 |
20 | #ap-south-1: ami-XXXXXXXX | 21 | us-west-2: ami-6ac26d12 |
21 | #sa-east-1: ami-XXXXXXXX | ||