diff --git a/setup/module/api/core.tf b/setup/module/api/core.tf index 584972000..3617a0f02 100644 --- a/setup/module/api/core.tf +++ b/setup/module/api/core.tf @@ -112,7 +112,7 @@ data "aws_ami" "linux" { filter { name = "name" - values = ["amzn-ami-2018.03.20201130-amazon-ecs-optimized"] + values = ["amzn-ami-2018.03.20210301-amazon-ecs-optimized"] } } diff --git a/setup/module/api/environment.tf b/setup/module/api/environment.tf index 7cd9c8ebe..6c04e844a 100644 --- a/setup/module/api/environment.tf +++ b/setup/module/api/environment.tf @@ -35,12 +35,12 @@ data "template_file" "user_data" { resource "aws_launch_configuration" "api" { name_prefix = "l0-${var.name}-api-" image_id = "${data.aws_ami.linux.id}" - instance_type = "t2.medium" + instance_type = "t3.medium" security_groups = ["${aws_security_group.api_env.id}"] iam_instance_profile = "${aws_iam_instance_profile.ecs.id}" user_data = "${data.template_file.user_data.rendered}" key_name = "${var.ssh_key_pair}" - ebs_optimized = false + ebs_optimized = true root_block_device { delete_on_termination = true