Fix AWS Terraform Deploy by switching to Debian Buster pre-release AMIs.

This commit is contained in:
Chad Anderson 2019-10-02 12:34:47 -07:00
parent 487ce4bed5
commit 9137440d3c
2 changed files with 20 additions and 18 deletions

View file

@ -62,4 +62,5 @@ resource "aws_instance" "tpot" {
} }
user_data = "${file("../cloud-init.yaml")} content: ${base64encode(file("../tpot.conf"))}" user_data = "${file("../cloud-init.yaml")} content: ${base64encode(file("../tpot.conf"))}"
vpc_security_group_ids = [aws_security_group.tpot.id] vpc_security_group_ids = [aws_security_group.tpot.id]
associate_public_ip_address = true
} }

View file

@ -28,26 +28,27 @@ variable "ec2_instance_type" {
default = "t3.large" default = "t3.large"
} }
# Refer to https://wiki.debian.org/Cloud/AmazonEC2Image/Stretch # Refer to https://wiki.debian.org/Cloud/AmazonEC2Image/Buster
variable "ec2_ami" { variable "ec2_ami" {
type = map(string) type = map(string)
default = { default = {
"ap-northeast-1" = "ami-09fbcd30452841cb9" "ap-east-1" = "ami-b7d0abc6"
"ap-northeast-2" = "ami-08363ccce96df1fff" "ap-northeast-1" = "ami-01f4f0c9374675b99"
"ap-south-1" = "ami-0dc98cbb0d0e49162" "ap-northeast-2" = "ami-0855cb0c55370c38c"
"ap-southeast-1" = "ami-0555b1a5444087dd4" "ap-south-1" = "ami-00d7d1cbdcb087cf3"
"ap-southeast-2" = "ami-029c54f988446691a" "ap-southeast-1" = "ami-03779b1b2fbb3a9d4"
"ca-central-1" = "ami-04413a263a7d94982" "ap-southeast-2" = "ami-0ce3a7c68c6b1678d"
"eu-central-1" = "ami-01fb3b7bab31acac5" "ca-central-1" = "ami-037099906a22f210f"
"eu-north-1" = "ami-050f04ca573daa1fb" "eu-central-1" = "ami-0845c3902a6f2af32"
"eu-west-1" = "ami-0968f6a31fc6cffc0" "eu-north-1" = "ami-e634bf98"
"eu-west-2" = "ami-0faa9c9b5399088fd" "eu-west-1" = "ami-06a53bf81914447b5"
"eu-west-3" = "ami-0cd23820af84edc85" "eu-west-2" = "ami-053d9f0770cd2e34c"
"sa-east-1" = "ami-030580e61468e54bd" "eu-west-3" = "ami-060bf1f444f742af9"
"us-east-1" = "ami-0357081a1383dc76b" "me-south-1" = "ami-04a9a536105c72d30"
"us-east-2" = "ami-09c10a66337c79669" "sa-east-1" = "ami-0a5fd18ed0b9c7f35"
"us-west-1" = "ami-0adbaf2e0ce044437" "us-east-1" = "ami-01db78123b2b99496"
"us-west-2" = "ami-05a3ef6744aa96514" "us-east-2" = "ami-010ffea14ff17ebf5"
"us-west-1" = "ami-0ed1af421f2a3cf40"
"us-west-2" = "ami-030a304a76b181155"
} }
} }