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

feature-request: Support multiple options in Function::CodeUri section #1746

Closed
godrose opened this issue Oct 21, 2020 · 1 comment
Closed

Comments

@godrose
Copy link

godrose commented Oct 21, 2020

Description:

Need more options for specifying the code to be packaged before deployment

I have a case when there's certain replaceable part of the code which is required only for the certain configuration of the lambdas. I want to be able to omit if from the package so it never gets deployed.
This of course is relevant for the runtimes when there's no actual compilation artifacts, like Node

I was thinking about something like:

Globals:
  Function:
    CodeUri: ./src |
      !./src/folder-i-want-to-omit

In short something like .gitignore. I would call this .samignore ;)

@c2tarun c2tarun added the stage/pm-review Waiting for review by our Product Manager, please don't work on this yet label Oct 21, 2020
@jfuss
Copy link
Contributor

jfuss commented Mar 3, 2022

This is actually a SAM CLI/Lambda Builders feature request not a SAM Spec. We have various requests for similar things already: aws/aws-lambda-builders#185, aws/aws-sam-cli#3350, aws/aws-sam-cli#1360, and aws/aws-sam-cli#858.

We likely need to combine those into a single one but will handle outside this issues.

Closing this as a duplicate of other requests in the correct repo (SAM CLI/Lambda builders).

@jfuss jfuss closed this as completed Mar 3, 2022
@jfuss jfuss added type/duplicate and removed stage/pm-review Waiting for review by our Product Manager, please don't work on this yet maintainer/need-response labels Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants