-
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
d/lambda_layer_version: Add Lambda Layer Version datasource #8577
Conversation
refs hashicorp#6651 - add lambda_layer_version datasource & related documentation
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.
This is great, @acburdine, thanks so much for a well put together pull request with nicely implemented acceptance testing. 🚀 Will add the sidebar link post-merge so this can get released today.
Output from acceptance testing:
--- PASS: TestAccDataSourceAWSLambdaLayerVersion_version (20.14s)
--- PASS: TestAccDataSourceAWSLambdaLayerVersion_basic (27.37s)
--- PASS: TestAccDataSourceAWSLambdaLayerVersion_runtime (35.73s)
} | ||
|
||
log.Printf("[DEBUG] Looking up latest version for lambda layer %s", layerName) | ||
listOutput, err := conn.ListLayerVersions(listInput) |
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.
To prevent potential problems in the future, this API call should likely be updated to use the Marker
parameter for paginated results since the SDK does not provide a paginated function. 👍 I don't want to hold up this pull request on this for an initial release though.
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.
something I noticed is that the ListLayerVersions api returns versions in descending order, and we only ever get the first result - would it still need pagination in that case?
--- | ||
layout: "aws" | ||
page_title: "AWS: aws_lambda_layer_version" | ||
sidebar_current: "docs-aws-datasource-lambda-layer-version" |
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.
Missing easy-to-forget sidebar link in website/aws.erb
😅
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.
whoops yeah, sorry about that 😬
This has been released in version 2.10.0 of the Terraform 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! |
refs #6651
Community Note
Release note for CHANGELOG:
Output from acceptance testing: