-
Notifications
You must be signed in to change notification settings - Fork 3
Improve and simplify tf structure for ecs fargate #90
base: master
Are you sure you want to change the base?
Conversation
| resource "aws_launch_template" "this" { | ||
| name_prefix = var.lauch_template_name | ||
| image_id = data.aws_ami.amazon_linux.id | ||
| instance_type = "t2.micro" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can move it to a variable with default value
| id = aws_launch_template.this.id | ||
| version = "$Latest" | ||
| } | ||
| desired_capacity = 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can move it to a variable with default value, same for the rest of props
| } | ||
|
|
||
| condition { | ||
| path_pattern { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we can add it in a dynamic block
| Environment = var.environment | ||
| } | ||
|
|
||
| data "aws_availability_zones" "available" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm this way we fetch all aws_availability_zones right? If we want to deploy something only to 2 of 3 availability_zones ?
No description provided.