Giter Site home page Giter Site logo

Comments (2)

hnnasit avatar hnnasit commented on May 29, 2024 1

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.

vieirai avatar vieirai commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.