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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support defining the version description with aws_lambda_function's publish option #23112

Open
skeggse opened this issue Feb 10, 2022 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service.

Comments

@skeggse
Copy link
Contributor

skeggse commented Feb 10, 2022

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It's often useful to include a description when publishing a new Lambda function. For example, this can be used to specify the source control reference that the Lambda function was deployed from.

versionReq := &lambda.PublishVersionInput{
FunctionName: aws.String(d.Id()),
}

This is not possible with the current implementation.

New or Affected Resource(s)

  • aws_lambda_function

Potential Terraform Configuration

resource "aws_lambda_function" "function" {
  publish = true
  version_description = "Published by ${var.user} from ${var.source_revision}"
}

References

@skeggse skeggse added the enhancement Requests to existing resources that expand the functionality or scope. label Feb 10, 2022
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/lambda Issues and PRs that pertain to the lambda service. labels Feb 10, 2022
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Feb 15, 2022
@iCodeOkay
Copy link

Encountered this issue this week.

I did notice that if you set the description on the lambda itself (i.e. the description field on aws_lambda_function resource), it'll magically show up in the description of the alias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service.
Projects
None yet
Development

No branches or pull requests

3 participants