-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Set lambda function version to latest published version when no qualifier; set to "$LATEST" when no published version #11195
Set lambda function version to latest published version when no qualifier; set to "$LATEST" when no published version #11195
Conversation
…for unpublished lambda)
CloudFront does not support |
Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding. Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author. For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000. For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide. |
…r-aws into pr/prabusah/11195
- This follows the pattern used by AWS API GetFunction action - If no published version: version and qualifier are set to "$LATEST"
- Should not write "qualifier" to state when not set by user
- latestVersion resolves to "$LATEST" when no published version exists - When a qualifier is input: gets returned in qualified ARNs of output - With no published version: qualified should match unqualified ARN
Thanks so much for your original contribution @prabusah! Finally getting this merged 🎉 All acceptance tests are passing: ❯ make testacc TESTS=TestAccLambdaFunctionDataSource_ PKG=lambda
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaFunctionDataSource_' -timeout 180m
=== RUN TestAccLambdaFunctionDataSource_basic
=== RUN TestAccLambdaFunctionDataSource_version
=== RUN TestAccLambdaFunctionDataSource_latestVersion
=== RUN TestAccLambdaFunctionDataSource_unpublishedVersion
=== RUN TestAccLambdaFunctionDataSource_alias
=== RUN TestAccLambdaFunctionDataSource_layers
=== RUN TestAccLambdaFunctionDataSource_vpc
=== RUN TestAccLambdaFunctionDataSource_environment
=== RUN TestAccLambdaFunctionDataSource_fileSystem
=== RUN TestAccLambdaFunctionDataSource_image
=== RUN TestAccLambdaFunctionDataSource_architectures
=== RUN TestAccLambdaFunctionDataSource_ephemeralStorage
function_data_source_test.go:318: AWS_LAMBDA_IMAGE_LATEST_ID env var must be set for Lambda Function Data Source Image Support acceptance tests.
--- SKIP: TestAccLambdaFunctionDataSource_image (0.81s)
--- PASS: TestAccLambdaFunctionDataSource_environment (44.97s)
--- PASS: TestAccLambdaFunctionDataSource_version (49.26s)
--- PASS: TestAccLambdaFunctionDataSource_architectures (55.03s)
--- PASS: TestAccLambdaFunctionDataSource_unpublishedVersion (60.91s)
--- PASS: TestAccLambdaFunctionDataSource_ephemeralStorage (66.90s)
--- PASS: TestAccLambdaFunctionDataSource_basic (72.89s)
--- PASS: TestAccLambdaFunctionDataSource_alias (80.09s)
--- PASS: TestAccLambdaFunctionDataSource_latestVersion (85.07s)
--- PASS: TestAccLambdaFunctionDataSource_layers (92.20s)
--- PASS: TestAccLambdaFunctionDataSource_vpc (1643.50s)
--- PASS: TestAccLambdaFunctionDataSource_fileSystem (1745.92s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lambda 1745.978s |
This functionality has been released in v4.29.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
…lished lambda)
Community Note
Closes #10038
Release note for CHANGELOG:
Output from acceptance testing:
Please review the changes and provide feedback.
Also require help on how to test the changes in local.