-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRE-2715-make-ssm-param-and-kms-key-arns-optional-for-terraform-aws-ecs-service #41
Merged
SaiPrasannaGopularam
merged 1 commit into
master
from
SRE-2715-make-ssm-param-and-kms-key-arns-optional-for-terraform-aws-ecs-service
May 28, 2024
Merged
SRE-2715-make-ssm-param-and-kms-key-arns-optional-for-terraform-aws-ecs-service #41
SaiPrasannaGopularam
merged 1 commit into
master
from
SRE-2715-make-ssm-param-and-kms-key-arns-optional-for-terraform-aws-ecs-service
May 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plan: Terraform will perform the following actions:
# module.contentkeeper.data.aws_iam_policy_document.task_execution_role_policy will be read during apply
# (config refers to values not yet known)
<= data "aws_iam_policy_document" "task_execution_role_policy" {
+ id = (known after apply)
+ json = (known after apply)
+ statement {
+ actions = [
+ "secretsmanager:GetSecretValue",
]
+ effect = "Allow"
+ resources = [
+ "arn:aws:secretsmanager:us-east-1:332913666507:secret:contentkeeper-cms/stg/env-vars/jwt-secret-key-1hGb8z",
+ "arn:aws:secretsmanager:us-east-1:332913666507:secret:contentkeeper-cms/stg/env-vars/sp_private_key-ntasrG",
+ "arn:aws:secretsmanager:us-east-1:332913666507:secret:ue1stg-runkeeper-services-image-pull-secret-JRwEJv",
]
}
+ statement {
+ actions = [
+ "ssm:GetParameter",
+ "ssm:GetParameters",
]
+ effect = "Allow"
+ resources = [
+ "arn:aws:ssm:us-east-1:332913666507:parameter/contentkeeper-cms/stg/env-vars/saml-metadata-xml",
]
}
+ statement {
+ actions = [
+ "kms:Decrypt",
]
+ effect = "Allow"
+ resources = [
+ "arn:aws:kms:us-east-1:332913666507:key/1192588f-3161-44ef-a238-4f309a0128bb",
]
}
+ statement {
+ actions = [
+ "ecs:DescribeTasks",
+ "ecs:ExecuteCommand",
]
+ effect = "Allow"
+ resources = [
+ (known after apply),
]
}
}
# module.contentkeeper.aws_ecs_service.service will be updated in-place
~ resource "aws_ecs_service" "service" {
id = "arn:aws:ecs:us-east-1:332913666507:service/ue1stg-runkeeper-services/contentkeeper-stg-cms-service"
name = "contentkeeper-stg-cms-service"
tags = {
"Application" = "contentkeeper-stg"
"Env" = "stg"
"TerraformManaged" = "true"
}
~ task_definition = "arn:aws:ecs:us-east-1:332913666507:task-definition/contentkeeper-stg-cms:34" -> (known after apply)
# (15 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.contentkeeper.aws_ecs_task_definition.task must be replaced
-/+ resource "aws_ecs_task_definition" "task" {
~ arn = "arn:aws:ecs:us-east-1:332913666507:task-definition/contentkeeper-stg-cms:34" -> (known after apply)
~ arn_without_revision = "arn:aws:ecs:us-east-1:332913666507:task-definition/contentkeeper-stg-cms" -> (known after apply)
~ container_definitions = jsonencode(
~ [
~ {
~ linuxParameters = {
~ capabilities = {
- add = []
# (1 unchanged attribute hidden)
}
# (1 unchanged attribute hidden)
}
name = "contentkeeper-stg-cms"
- systemControls = []
# (12 unchanged attributes hidden)
},
] # forces replacement
)
~ id = "contentkeeper-stg-cms" -> (known after apply)
~ revision = 34 -> (known after apply)
tags = {
"Application" = "contentkeeper-stg"
"Env" = "stg"
"TerraformManaged" = "true"
}
# (9 unchanged attributes hidden)
}
# module.contentkeeper.aws_iam_role_policy.task_execution_role_policy will be updated in-place
~ resource "aws_iam_role_policy" "task_execution_role_policy" {
id = "contentkeeper-stg-cms-ecsTaskExecutionRole:contentkeeper-stg-cms-ecs-task-execution-role-policy"
name = "contentkeeper-stg-cms-ecs-task-execution-role-policy"
~ policy = jsonencode(
{
- Statement = [
- {
- Action = "secretsmanager:GetSecretValue"
- Effect = "Allow"
- Resource = [
- "arn:aws:secretsmanager:us-east-1:332913666507:secret:ue1stg-runkeeper-services-image-pull-secret-JRwEJv",
- "arn:aws:secretsmanager:us-east-1:332913666507:secret:contentkeeper-cms/stg/env-vars/sp_private_key-ntasrG",
- "arn:aws:secretsmanager:us-east-1:332913666507:secret:contentkeeper-cms/stg/env-vars/jwt-secret-key-1hGb8z",
]
},
- {
- Action = "kms:Decrypt"
- Effect = "Allow"
- Resource = "arn:aws:kms:us-east-1:332913666507:key/1192588f-3161-44ef-a238-4f309a0128bb"
},
- {
- Action = [
- "ecs:ExecuteCommand",
- "ecs:DescribeTasks",
]
- Effect = "Allow"
- Resource = "arn:aws:ecs:us-east-1:332913666507:task-definition/contentkeeper-stg-cms:34"
},
]
- Version = "2012-10-17"
}
) -> (known after apply)
# (1 unchanged attribute hidden)
}
Plan: 1 to add, 2 to change, 1 to destroy. |
automationforthepeople
approved these changes
May 28, 2024
SaiPrasannaGopularam
deleted the
SRE-2715-make-ssm-param-and-kms-key-arns-optional-for-terraform-aws-ecs-service
branch
May 28, 2024 20:11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes