Closed gerdzhikov closed 3 years ago
I'm currently working on a new v2.0.0. It has support for Fn::GetAtt
and most other commonly used functions. It should also be possible to solve any remaining issues you might have in this task.
The version is not pushed to npm
yet but a branch exits: https://github.com/arabold/serverless-export-env/tree/v2.0.0. I'm happy about any feedback before the official release.
To simplify testing the new version, I've published 2.0.0-alpha.0
to as alpha release to npm
:
npm install serverless-export-env@2.0.0-alpha.0 --save-dev
I'm closing this task. Please open a new one (or comment on this one) if your problems are still not solved.
As of 1st, thanks a lot for this great plugin for the serverless framework.
Could you please provide an example in the README how we can use the supported AWS pseudo parameters as
AWS::AccountId
,AWS::NotificationARNs
,AWS::NoValue
,AWS::Partition
,AWS::Region
,AWS::StackId
,AWS::StackName
,AWS::URLSuffix
, and maybe a list of all supported parameters?Currently, the example describes the usage of the
Ref
intrinsic function and it works like expected. But I'm somehow not able to use neither pseudo parameters likeAWS::AccountId
andAWS::Region
nor other intrinsic functions likeFn::Join
andFn::ImportValue
Following configuration in the
serverless.yaml
generates with
serverless export-env
the following.env
filewhich has two issues
The pseudo parameters and intrinsic functions are not resolvedMy Application
must be quoted because the empty space is not valid in the values ofdotenv
files.I'm testing this on the following environment:
Kind regards!
Update:
Following configuration exports the pseudo parameter and intrinsic functions values:
Need to figure out how to escape values containing empty spaces