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

Documentation regarding use of AWS pseudo parameters natively could be more helpful #95

Open
phaakma opened this issue Jan 10, 2022 · 0 comments

Comments

@phaakma
Copy link

phaakma commented Jan 10, 2022

Hi.

Thanks for the comment re this plugin being deprecated, but I struggled to implement without it based on the documentation available in this repo and from the Serverless Framework documentation.

It wasn't until I stumbled on this link from one of the Serverless Forum pages that I realised that not only do you need to replace the '#' with '$', you seem to need to add '!Sub' at the beginning.

ie.
Resource: 'arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:function-on-error'
becomes:
Resource: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:function-on-error'

https://forum.serverless.com/t/pseudo-parameters-with-variables/13119

I think it would be very helpful for others if this little tip could be added to the documentation page here.

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

No branches or pull requests

1 participant