aws / aws/aws-sam-cli

Selectively build with container for certain resources

Open
#3,720 1 comment 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement

The SAM CLI `build` command lets you pass `--use-container` to build resources inside the corresponding container.

Building in a container usually takes longer, but provides the same platform/native environment for the build process.

I would like to selectively choose which `AWS::Serverless::Function`s (or `Resource`s) to be built inside a container.

### Proposal

Add a `BuildContainer` under `Properties` for `AWS::Serverless::Function`.

Things to consider:
[ ] The [SAM documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-specification.html) will need to be updated

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.