aws / aws/aws-sam-cli

CDK followSymlinks not supported

Open
#6,959 3 comments 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

### SAM should support the CDK `followSymlinks` config option.

Currently SAM is the recommended tool for running CDK applications locally, as such I expect my CDK config to be compatible with SAM, however that is not always the case.
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-cdk-testing.html

### Proposal

The CDK `followSymlinks` flag should be supported by SAM.
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AssetImageCodeProps.html#followsymlinks

### Additional Details

The more I think about this, I'm not even sure if this is a SAM issue, or a Cloudformation issue or a CDK issue.
Currently CDK seems to be outputting `AWS::Lambda::Function` resources, which are part of the Cloudformation spec.
I guess CDK would have to be extended to output this flag in the `Metadata` and them SAM would have to implement some logic on top?

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.