diff --git a/deploy/ecs_iam_roles.tf b/deploy/ecs_iam_roles.tf index c1253c5..4afffd1 100644 --- a/deploy/ecs_iam_roles.tf +++ b/deploy/ecs_iam_roles.tf @@ -1,6 +1,6 @@ +#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role resource "aws_iam_role" "ecs_task_role" { name = "${var.name}-task-role" - # Terraform's "jsonencode" function converts a # Terraform expression result to valid JSON syntax. assume_role_policy = jsonencode({ @@ -25,9 +25,10 @@ resource "aws_iam_role" "ecs_task_role" { ] }) } + +#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role resource "aws_iam_role" "ecs_task_execution_role" { name = "${var.name}-task-execution-role" - # Terraform's "jsonencode" function converts a # Terraform expression result to valid JSON syntax. assume_role_policy = jsonencode({ diff --git a/deploy/ecs_service.tf b/deploy/ecs_service.tf index 68f47ee..d1f004b 100644 --- a/deploy/ecs_service.tf +++ b/deploy/ecs_service.tf @@ -1,4 +1,4 @@ - +#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_service resource "aws_ecs_service" "service" { name = var.name cluster = local.infra_output["cluster_id"] diff --git a/deploy/ecs_task.tf b/deploy/ecs_task.tf index 39ab80c..67877ad 100644 --- a/deploy/ecs_task.tf +++ b/deploy/ecs_task.tf @@ -1,3 +1,4 @@ +#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition resource "aws_ecs_task_definition" "web_app" { family = var.name execution_role_arn = aws_iam_role.ecs_task_execution_role.arn