Skip to content

Commit

Permalink
1: updated ec2 from t2 to t3.
Browse files Browse the repository at this point in the history
2: updated the latest image.
  • Loading branch information
Victor Bi committed Mar 22, 2021
1 parent 1a4a73f commit e311dd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup/module/api/core.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}

Expand Down
4 changes: 2 additions & 2 deletions setup/module/api/environment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e311dd7

Please sign in to comment.