-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Open
Labels
documentationIntroduces or discusses updates to documentation.Introduces or discusses updates to documentation.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/ecsIssues and PRs that pertain to the ecs service.Issues and PRs that pertain to the ecs service.
Description
Documentation Link(s)
Description
Tiny update that will lead to removing un-necessary chatty useless update
When defining an ECS Fargate Cluster, in configuration block there is a managed_storage_configuration sub-block where you can define the fargate_ephemeral_storage_kms_key_id parameter.
It is documented as needing the kms key id but this is the ARN that is needed.
If you submit the key id it does work but terraform Plan always propose an id -> arn update.
Before
resource "aws_ecs_cluster" "some_cluster" {
name = "some-cluster"
configuration {
managed_storage_configuration {
fargate_ephemeral_storage_kms_key_id = aws_kms_key.fargate_storage.id
}
}
}
Will always lead to terraform plan updating key id to key ARN
And terraform apply actually really trigger an update.
~ configuration {
~ managed_storage_configuration {
~ fargate_ephemeral_storage_kms_key_id = "arn:aws:kms:ap-southeast-2:xxxxxxxxxxxx:key/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -> "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
After
resource "aws_ecs_cluster" "some_cluster" {
name = "some-cluster"
configuration {
managed_storage_configuration {
fargate_ephemeral_storage_kms_key_id = aws_kms_key.fargate_storage.arn
}
}
}
Terraform plan and update are both clean.
References
No response
Would you like to implement a fix?
No
Metadata
Metadata
Assignees
Labels
documentationIntroduces or discusses updates to documentation.Introduces or discusses updates to documentation.needs-triageWaiting for first response or review from a maintainer.Waiting for first response or review from a maintainer.service/ecsIssues and PRs that pertain to the ecs service.Issues and PRs that pertain to the ecs service.