-
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
Update plan output to reflect publish(version, qualified_arn) when config changes #15121
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's perfect.
…nfig changes When config changes, such as environment variables, a publish is triggered and the state is updated with the new version, however as the values of version and qualified_arn were not showing as computed any dependent resource, such as aws_lambda_alias, would not be triggered to update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
--- PASS: TestAccAWSLambdaFunction_expectFilenameAndS3Attributes (32.85s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_FunctionName_Arn (65.93s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_basic (74.23s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunctionEventInvokeConfig (98.56s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_disappears_LambdaFunction (100.54s)
--- PASS: TestAccAWSLambdaFunction_disappears (100.78s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_Latest (105.30s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionName_Arn (105.76s)
--- PASS: TestAccAWSLambdaFunction_basic (106.63s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_FunctionVersion (107.34s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_Qualifier_AliasName (108.01s)
--- PASS: TestAccAWSLambdaFunction_nilDeadLetterConfig (35.41s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumEventAgeInSeconds (152.13s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Remove (154.09s)
--- PASS: TestAccAWSLambdaFunction_concurrency (158.25s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_Swap (158.28s)
--- PASS: TestAccAWSLambdaFunction_versioned (92.09s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnFailure_Destination (169.20s)
--- PASS: TestAccAWSLambdaFunction_encryptedEnvVariables (141.85s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_DestinationConfig_OnSuccess_Destination (180.75s)
--- PASS: TestAccAWSLambdaFunction_KmsKeyArn_NoEnvironmentVariables (91.06s)
--- PASS: TestAccAWSLambdaFunction_Layers (90.88s)
--- PASS: TestAccAWSLambdaFunction_concurrencyCycle (200.34s)
--- PASS: TestAccAWSLambdaFunctionEventInvokeConfig_MaximumRetryAttempts (202.08s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfigUpdated (126.41s)
--- PASS: TestAccAWSLambdaFunction_DeadLetterConfig (128.84s)
--- PASS: TestAccAWSLambdaFunction_tracingConfig (125.36s)
--- PASS: TestAccAWSLambdaFunction_EmptyVpcConfig (72.79s)
--- PASS: TestAccAWSLambdaFunction_LayersUpdate (128.68s)
--- PASS: TestAccAWSLambdaFunction_s3 (68.31s)
--- PASS: TestAccAWSLambdaFunction_envVariables (239.46s)
--- PASS: TestAccAWSLambdaFunction_versionedUpdate (165.48s)
--- PASS: TestAccAWSLambdaFunction_localUpdate (82.25s)
--- PASS: TestAccAWSLambdaFunction_localUpdate_nameOnly (77.26s)
--- PASS: TestAccAWSLambdaFunction_s3Update_basic (67.85s)
--- PASS: TestAccAWSLambdaFunction_s3Update_unversioned (68.86s)
--- PASS: TestAccAWSLambdaFunction_tags (82.36s)
--- PASS: TestAccAWSLambdaFunction_VpcConfig_ProperIamDependencies (267.39s)
--- PASS: TestAccAWSLambdaFunction_runtimes (311.61s)
--- PASS: TestAccAWSLambdaFunction_VPC_withInvocation (692.65s)
--- PASS: TestAccAWSLambdaFunction_VPC (717.03s)
--- PASS: TestAccAWSLambdaFunction_VPCUpdate (911.81s)
--- PASS: TestAccAWSLambdaFunction_VPCRemoval (1673.17s)
--- PASS: TestAccAWSLambdaFunction_FileSystemConfig (2054.66s)
This has been released in version 3.13.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 for triage. 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! |
When config changes, such as environment variables, a publish is triggered
and the state is updated with the new version, however as the values of
version and qualified_arn were not showing as computed any dependent resource,
such as aws_lambda_alias, would not be triggered to update.
I'm not too sure if the approach I've taken here is the best so I'll welcome any suggestions to improve this. I also couldn't find any test coverage around this area, if I've missed it please point me in the correct place.
Community Note
Relates OR Closes #14934
Release note for CHANGELOG:
Output from acceptance testing: