Comments (2)
Hi @vieirai, thanks for opening the issue. I'm trying to understand this more. I tried playing around with an image type lambda function and followSymlinks
enum value and observed that on running cdk synth
, the symlinks followed are based on the value set for followSymlinks
. E.g. Setting it to NEVER
and running sam build
or sam local invoke
does not follow the symlink and it can't find the Dockerfile
, whereas setting it to ALWAYS
or EXTERNAL
allows the symlink to be followed and find the Dockerfile
. Could you elaborate on what support are you looking for with the followSymlinks
property for sam local
commands and maybe provide an example of how it would work?
from aws-sam-cli.
Hi @hnnasit , thank you for looking into this.
I can confirm it does work as expected.
In short our project was doing:
cdk synth SymlinkStack --no-staging > template.yml
sam build symlink
sam local invoke symlink
And this way it does not resolve the symlink references and we end up with broken files inside the container.
Looks like we were trying to be too smart and avoid having to pass the template path, and it ended up causing problems.
I can confirm that if we follow the docs example and do:
cdk synth
sam build -t cdk.out/SymlinkStack.template.json symlink
sam local invoke -t cdk.out/SymlinkStack.template.json symlink
Then it does work.
Not sure if this is worth highlighting in the docs or not, but either way I'm happy for you to resolve this.
from aws-sam-cli.
Related Issues (20)
- Token Authorizer doesn't get linked if FunctionPayloadType missing in template.yml HOT 1
- Feature Request: Set ECR Lifecycle when deploying a lambda with a docker image HOT 4
- Unable to Retrieve Bot Response: ERR_NAME_NOT_RESOLVED and 403 Forbidden Error in Flask Application HOT 6
- Bug: sam cli build stuck on mounting.... HOT 3
- Permission denied: '/tmp/samcli/source/gradlew' when building aws-sam-cli-build-image-java11 HOT 3
- Bug: option --base-dir does not work HOT 1
- Bug: sam build - OSError HOT 1
- Unclear how to use different build-image values for sam build call HOT 3
- SAM CLI Build Not Recognizing requirements.txt File HOT 3
- Bug: sam local invoke - FileNotFoundError HOT 3
- Bug: sam build - PermissionError HOT 2
- Unable to solve mapping for Timeout property HOT 3
- Bug: sam build - InvalidSamDocumentException HOT 3
- Bug: ValueError when executing `sam init` HOT 3
- Unable to debug AWS Quick Start application - Hello World Example with Powertools for AWS Lambda HOT 4
- Bug: CDK typescript project fails with "Runtime.ImportModuleError" when running sam local HOT 7
- SAM Does not build the application, returns "PythonPipBuilder:ResolveDependencies failed HOT 4
- Bug: Missing DockerContext doesn't fail validation HOT 2
- `sam init` fails to deploy a standard sample on Windows platform HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sam-cli.