Opening this issue as discussed is https://github.com/terraform-providers/terraform-provider-aws/issues/3192#issuecomment-371764787 where the provider attempts to perform a lambda alias' rename, which is not even an allowed operation.
0.11.5
aws_lambda_alias
Please see https://github.com/terraform-providers/terraform-provider-aws/issues/3192#issue-292762854
A new alias should be created - the name of an alias should be treated as an unique identifier.
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
https://github.com/terraform-providers/terraform-provider-aws/issues/3192
https://github.com/terraform-providers/terraform-provider-aws/issues/3192#issuecomment-371764787
Thanks! Should be fixed in #4106 by making name a ForceNew change
Thank you for the really quick turnaround on this :)
The fix for this has been merged into master and will release with v1.14.1 of the AWS provider, likely on Wednesday. 🎉
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.
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!
Most helpful comment
The fix for this has been merged into master and will release with v1.14.1 of the AWS provider, likely on Wednesday. 🎉