Skip to content

Releases: arabold/serverless-export-env

v2.2.0

16 Jun 14:37
Compare
Choose a tag to compare
  • Fixed error with latest cfn-resolver-lib. Thanks to estahn for the fix.
  • Updated dependencies to latest versions.

v2.1.0

26 Jan 16:31
Compare
Choose a tag to compare
  • Compatibility with Serverless v3.x
  • Updated dependencies minor versions

v2.0.0

04 Jun 15:16
Compare
Choose a tag to compare
  • Complete rewrite of the variable resolver. We use the amazing cfn-resolver-lib lib now. This allows us to support not only Ref and Fn::ImportValue as in previous releases, but we're able to resolve the most commonly used intrinsic functions automatically now.
  • Customize the resolution of Ref, Fn::GetAtt and Fn::ImportValue using configuration options.
  • Added --all command line parameter to merge the environment variables of all functions into a single .env file. Please note that the behavior is undefined if functions use conflicting values for the same environment variable name.

v2.0.0-alpha.1

04 Jun 15:14
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release
2.0.0-alpha.1

v2.0.0-alpha.0

26 Apr 21:09
Compare
Choose a tag to compare
v2.0.0-alpha.0 Pre-release
Pre-release

Complete rewrite of the variable resolver. We use the amazing cfn-resolver-lib lib now. This allows us to support not only Ref and Fn::ImportValue as in previous releases, but we're able to resolve the most commonly used intrinsic functions automatically now.

Migrating from 1.x to 2.x

  • Running sls invoke local or sls offline start will no longer create or update your .env file. If you want to create an .env file, simply run sls export-env instead.
  • By default the plugin will no longer overwrite any existing .env file. To enable overwriting existing files either specific --overwrite in the command line or set the custom.export-env.overwrite configuration option.
  • Resource Outputs values (resources.Resources.Outputs.*) are no longer exported automatically. This has always been a workaround and causes more problems than it actually solved. The plugin will try its best to resolve Fn::GetAtt and other references for you now, so there should be little need for the old behavior anymore. Add the desired value new environment variable to provider.environment instead.
  • Running sls export-env will no longer merge the environment variables of all functions into a single .env file. Instead pass the name of the desired function as --function argument to the command line. If no function is specified, only global environment variables will be exported.
  • The configuration options filename and pathFromRoot have been merged to filename now. You can specify relative paths in filename now such as ./dist/.env. Make sure the target folder exists!

v1.4.4

24 Apr 20:42
Compare
Choose a tag to compare
  • Reverted changes in 1.4.1. Unfortunately we broke the semver contract by introducing a breaking feature in a patch update. This feature needs to be rethought and added back in a 1.5.x release as optional. Until then, I had to remove it again.
  • Fixed some compatibility issues with the latest Serverless framework release. Thanks to pgrzesik for the necessary updates.

v1.4.1

02 Feb 17:37
Compare
Choose a tag to compare

v1.4.0

07 Oct 14:27
Compare
Choose a tag to compare
  • Collect and set resource values from actual Cloud Formation stack output. Thanks to andersquist for his contribution!

v1.3.1

17 May 17:53
Compare
Choose a tag to compare
  • Explicitly set environment variables during local invocation of the Lambda (sls invoke local)

v1.3.0

17 May 16:26
Compare
Choose a tag to compare
  • Support different output file name and path. Thanks to philiiiiiipp.
  • Export Outputs as environment variables. Thanks to lielran.
  • Updated to latest dependencies