diff --git a/bastion/main.tf b/bastion/main.tf index d5fe9a68..6cd53ac6 100644 --- a/bastion/main.tf +++ b/bastion/main.tf @@ -51,7 +51,7 @@ variable "environment" { } module "ami" { - source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs" + source = "git::https://github.com/terraform-community-modules/tf_aws_ubuntu_ami.git//ebs?ref=e6614d7ce66a9a59db1787c8f695d70034b865db" region = "${var.region}" distribution = "trusty" instance_type = "${var.instance_type}" diff --git a/defaults/main.tf b/defaults/main.tf index bd0d6892..70a0a7e1 100644 --- a/defaults/main.tf +++ b/defaults/main.tf @@ -27,7 +27,7 @@ variable "default_ecs_ami" { us-east-1 = "ami-5f3ff932" us-west-1 = "ami-31c08551" us-west-2 = "ami-f3985d93" - eu-west-1 = "ami-ab4bd5d8" + eu-west-1 = "ami-063f1a60" eu-central-1 = "ami-6c58b103" ap-northeast-1 = "ami-a69d68c7" ap-northeast-2 = "ami-7b2de615" diff --git a/packer/base/packer.yml b/packer/base/packer.yml index 0b2b78a4..f0fde64a 100644 --- a/packer/base/packer.yml +++ b/packer/base/packer.yml @@ -1,7 +1,7 @@ --- # https://www.packer.io/docs/builders/amazon-ebs.html ami: - source_ami: ami-fa82739a + source_ami: ami-d8f4deab instance_type: c4.2xlarge ssh_username: ubuntu ssh_timeout: 10m diff --git a/packer/ecs/root/etc/systemd/system/ecs-agent.service b/packer/ecs/root/etc/systemd/system/ecs-agent.service index 135da611..9ec14044 100644 --- a/packer/ecs/root/etc/systemd/system/ecs-agent.service +++ b/packer/ecs/root/etc/systemd/system/ecs-agent.service @@ -14,7 +14,7 @@ ExecStartPre=/bin/mkdir -p /var/lib/ecs/data ExecStartPre=/bin/mkdir -p /var/log/ecs ExecStartPre=-/usr/bin/docker kill ecs-agent ExecStartPre=-/usr/bin/docker rm ecs-agent -ExecStartPre=-/usr/bin/docker pull amazon/amazon-ecs-agent:v1.9.0 +ExecStartPre=-/usr/bin/docker pull amazon/amazon-ecs-agent:v1.13.1 ExecStart=/usr/bin/docker run \ --name=ecs-agent \ --restart=on-failure:10 \ @@ -26,7 +26,7 @@ ExecStart=/usr/bin/docker run \ --publish=127.0.0.1:51678:51678 \ --env-file=/etc/ecs/ecs.config \ --env=ECS_CLUSTER=${SERVER_GROUP} \ - amazon/amazon-ecs-agent:v1.9.0 + amazon/amazon-ecs-agent:v1.13.1 ExecStop=-/usr/bin/docker stop ecs-agent [Install]