Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brunodasilvalenga committed Feb 23, 2024
1 parent 887e3a9 commit c1083a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ecs-service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "aws_ecs_service" "default" {
}

dynamic "capacity_provider_strategy" {
for_each = try(var.without_capacity_provider,false) ? [] : ["1"]
for_each = try(var.without_capacity_provider, false) ? [] : ["1"]
content {
capacity_provider = var.launch_type == "FARGATE" ? (var.fargate_spot ? "FARGATE_SPOT" : "FARGATE") : "${var.cluster_name}-capacity-provider"
weight = 1
Expand Down
2 changes: 1 addition & 1 deletion ecs-task-definition.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "aws_ecs_task_definition" "default" {
]
EOT

lifecycle {
lifecycle {
ignore_changes = [
container_definitions
]
Expand Down
6 changes: 3 additions & 3 deletions iam-ecs-task.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_iam_role" "ecs_task" {
name = "ecs-task-${var.cluster_name}-${var.name}-${data.aws_region.current.name}"
name = "ecs-task-${var.cluster_name}-${var.name}-${data.aws_region.current.name}"

assume_role_policy = <<EOF
{
Expand All @@ -26,8 +26,8 @@ resource "aws_iam_role_policy_attachment" "ecs_task" {
}

resource "aws_iam_role_policy" "ssm_policy" {
name = "ecs-ssm-policy"
role = aws_iam_role.ecs_task.name
name = "ecs-ssm-policy"
role = aws_iam_role.ecs_task.name

policy = <<EOF
{
Expand Down

0 comments on commit c1083a4

Please sign in to comment.