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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda Function: "package_type" variable is redundant #19508

Closed
andrewsavino1 opened this issue May 24, 2021 · 4 comments
Closed

Lambda Function: "package_type" variable is redundant #19508

andrewsavino1 opened this issue May 24, 2021 · 4 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@andrewsavino1
Copy link

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

The var "package_type" has two options - "Image" and "Zip". The correct value of this variable is known by whether the user specified an image_uri (Image), or s3_bucket/filename (Zip). package_type currently defaults to Zip, which can create confusing error messages if the user is trying to create a Docker Image Lambda.

New or Affected Resource(s)

  • aws_lambda_function

Potential Terraform Configuration

(as-is, omitting the package_type input)

References

It may also be helpful to add additional validations, as proposed in #16515.

  • #0000
@andrewsavino1 andrewsavino1 added the enhancement Requests to existing resources that expand the functionality or scope. label May 24, 2021
@ghost ghost added the service/lambda Issues and PRs that pertain to the lambda service. label May 24, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label May 24, 2021
@ewbankkit
Copy link
Contributor

@andrewsavino1 Thanks for raising this issue.
Yes, a plan-time validation (via CustomizeDiff) would be the way to go here.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label May 25, 2021
@andrewsavino1
Copy link
Author

andrewsavino1 commented May 25, 2021

Makes sense, I can make a PR to add that plan-time validation. #19514

@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label May 15, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/lambda Issues and PRs that pertain to the lambda service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants