Skip to content
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

Provider attempts to update in line when Lambda alias name is changed #4090

Closed
ricoli opened this issue Apr 6, 2018 · 5 comments · Fixed by #4106
Closed

Provider attempts to update in line when Lambda alias name is changed #4090

ricoli opened this issue Apr 6, 2018 · 5 comments · Fixed by #4106
Labels
bug Addresses a defect in current functionality. service/lambda Issues and PRs that pertain to the lambda service.
Milestone

Comments

@ricoli
Copy link

ricoli commented Apr 6, 2018

Opening this issue as discussed is #3192 (comment) where the provider attempts to perform a lambda alias' rename, which is not even an allowed operation.

Terraform Version

0.11.5

Affected Resource(s)

aws_lambda_alias

Terraform configuration files

Please see #3192 (comment)

Expected Behavior

A new alias should be created - the name of an alias should be treated as an unique identifier.

Actual Behavior

An in line update is attempted, which fails with a 404 from the API:

* lambda.aws_lambda_alias.version: 1 error(s) occurred:

* aws_lambda_alias.version: Error updating Lambda alias: ResourceNotFoundException: Alias not found: arn:aws:lambda:us-east-1:999999999999:function:sample-lambda:MASTER-121
        status code: 404, request id: ca3401b9-237d-11e8-8e0e-05a5757ee33f

Steps to Reproduce

  1. Create and apply a lambda and tag it with aliases according to the scheme shown at the top.
  2. Change the lambda_version variable.
  3. terraform apply

References

#3192
#3192 (comment)

@ricoli ricoli changed the title Lambda alias name being updated in-line Provider attempts to update in line when Lambda alias name is changed Apr 6, 2018
@catsby catsby added the bug Addresses a defect in current functionality. label Apr 6, 2018
catsby added a commit that referenced this issue Apr 6, 2018
This test demonstrates the bug in
#4090
@catsby
Copy link
Contributor

catsby commented Apr 6, 2018

Thanks! Should be fixed in #4106 by making name a ForceNew change

@ricoli
Copy link
Author

ricoli commented Apr 9, 2018

Thank you for the really quick turnaround on this :)

@bflad bflad added the service/lambda Issues and PRs that pertain to the lambda service. label Apr 9, 2018
@bflad bflad added this to the v1.14.1 milestone Apr 9, 2018
@bflad
Copy link
Contributor

bflad commented Apr 9, 2018

The fix for this has been merged into master and will release with v1.14.1 of the AWS provider, likely on Wednesday. 🎉

@bflad
Copy link
Contributor

bflad commented Apr 11, 2018

This has been released in version 1.14.1 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 6, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/lambda Issues and PRs that pertain to the lambda service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants