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

Layer is not recognized when I use Fn::ImportValue #1773

Open
Sancho66 opened this issue May 20, 2020 · 1 comment
Open

Layer is not recognized when I use Fn::ImportValue #1773

Sancho66 opened this issue May 20, 2020 · 1 comment

Comments

@Sancho66
Copy link

Sancho66 commented May 20, 2020

Describe the bug

I can't import my layer in my aws sam template when I use "Fn::ImportValue". When I debug with the toolkit, the layer is not recognized even if it is successfully exported from my other stack.
See screenshots.
When I build and deploy my lambda, the layer is well recognized and it works.

I've tried to set manually the arn value of my layer and toolkit debug works then.

To reproduce

  • Create a layer in a stack and export it with aws sam template ( build and deploy it )
  • Import it in aws sam template and try to use it in your lambda

Expected behavior
Layer works on debug mode.

Screenshots
Capture d’écran 2020-05-20 à 03 11 56

Your Environment

  • OS: MacOS
  • JetBrains product: Pycharm
  • JetBrains product version: 2019.3 Profesional
  • AWS Toolkit version: 1.14.193
  • SAM CLI version: 0.48
  • JVM/Python version: 3.8

Additional context

@Sancho66 Sancho66 added the bug We can reproduce the issue and confirmed it is a bug. label May 20, 2020
@ckant
Copy link

ckant commented Jun 6, 2020

It appears that SAM CLI lacks support for Fn::ImportValue.

Please open a feature request for SAM CLI to see if this can be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants