-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
efs_volume_configuration transit_encryption_port causing replace of task definition #23541
Comments
any movement on this? |
I'm also seeing this. I would add that you can't set the transit encryption port value to |
Duplicate of #19549? |
Try to explicitly specify transit_encryption_port = null. |
@ragumix I've done that before. The value is stored as 0 in the state file when the value |
Mentioned earlier in 2022, above. |
Has anyone found a workaround for this? I tried adding transit_encryption_port as a lifecycle ignore but then it starts complaining about it not being set. I can try setting it to some random value I suppose, anyone tried that? |
The following works for me and does not recreate it on next apply: volume {
name = "efs"
efs_volume_configuration {
file_system_id = data.aws_efs_file_system.efs.file_system_id
transit_encryption_port = null
transit_encryption = "DISABLED"
root_directory = "/"
}
} |
It makes sense that disabling encryption would fix the issue with the encryption port. However, those of us that need to keep encryption enabled can't use this as a solution. |
This functionality has been released in v5.23.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v1.1.6
on linux_amd64
Affected Resource(s)
aws_ecs_task_definition -> volume - > efs_volume_configuration -> transit_encryption_port
relevant code:
terraform-provider-aws/internal/service/ecs/task_definition.go
Line 355 in de6e94d
reference: https://www.reddit.com/r/Terraform/comments/px60pb/terraform_constantly_reattaches_volumes_when/
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
no change
Actual Behavior
it wants to replace
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: