[Bug]: Changes to docker_volume_configuration
block in aws_ecs_task_definition
resource are not detected
#40801
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
Milestone
Terraform Core Version
1.10.3
AWS Provider Version
5.82.2
Affected Resource(s)
docker_volume_configuration
block within a dynamicvolume
block in anaws_ecs_task_definition
resourceDescription
Changes to the
docker_volume_configuration
block in anaws_ecs_task_definition
resource are not detected by Terraform unless the resource is removed from state first. This appears to be an issue with how the provider compares the volume configuration.Reproduction Case
The task definition module uses a dynamic volume block based on an EFS configuration:
Steps to Reproduce
timeo
value in thevolume
block from 600 to 500terraform plan
on the configuration belowExpected Behavior
Terraform should detect changes to the volume configuration and create a new task definition revision when such changes are made.
Actual Behavior
Terraform does not detect changes to the volume configuration unless the resource is removed from state first.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
The task definitions are defined in variables:
Steps to Reproduce
timeo
value in the volume configuration from 600 to 500terraform plan
- no changes are detectedThe text was updated successfully, but these errors were encountered: