Open domvo opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
same issue
Same issue as well using Terraform v1.3.6 with hashicorp/aws v4.50.0
When expanding the plan for module.xyz.aws_ecs_service.service to include new values learned so far during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .triggers["redeployment"]: was cty.StringVal("2023-01-19T09:58:45Z"), but now cty.StringVal("2023-01-19T12:58:17Z"). │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker
Any updates on this yet? It's proving to be a pretty big blocker for some of my deployment efforts.
Would it reduce the likelihood of hitting this bug if I used something like date() instead of time()? Something that doesn't change with the time as quickly?
Did you try using true
instead of timestamp()
?
This is likely a duplicate of #19583.
Did you try using
true
instead oftimestamp()
?
I assume you mean
triggers = { redeployment = true }
@nathanhruby, setting
triggers = { redeployment = true }
does not have any efect in my case
It's works fine for me.
triggers = {
redeployment = plantimestamp()
}
@Surgo did you also set the force_new_deployment = true
or just triggers.redeployment?
Terraform Core Version
v1.3.5
AWS Provider Version
v4.41.0
Affected Resource(s)
Expected Behavior
Running apply multiple times with an aws_ecs_service that has
force_new_deployment
set totrue
should run a new deployment of the given ecs Service.Actual Behavior
It shows an error and doesn't run apply (or when it applies, it doesn't do anything, because it says "No Changes").
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response