-
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
Creating dynamically named aws_lambda_alias results in badness #108
Comments
Just came across a similar thing where we rebuilt an environment and the alias resource was to be repointed to a different function_name - it looks like the 'name' and 'function_name' arguments need to have ForceNew set to true. |
Hi, I'm still experiencing this problem:
And the terraform code is:
When I switch branches and do a Reading the previous comment I see that ForceNew has been set of the Any plans to resolve this? I'm using aws provider version 1.9. Thanks, |
It seems like this has been fixed by #4106 |
Setting If there are other lingering issues here, please create new issues following the issue template and we'll troubleshoot further. Thanks! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @dansteen as hashicorp/terraform#5664. It was migrated here as part of the provider split. The original body of the issue is below.
Hey!
I created an aws_lambda_alias with a dynamic name:
The intention was to have an alias named after the git hash of the jar being generated. This would create a new alias each time the jar is updated (I realize there are some issues with this - this was an early exploration). Unfortunately, I get the following error after the first run:
Which is true, but not at all what I expected. I expected it to remove the old alias, and create a new one, rather than attempting to "update" the new alias (which doesn't exist yet). To resole this, I had to manually delete the entries out of the state file.
Thanks!
Dan
The text was updated successfully, but these errors were encountered: