serverless-export-env
serverless-export-env copied to clipboard
Serverless plugin to export environment variables into a .env file
Hello ! I am facing an issue where I create a Cloudfront distribution and I cannot get the DomainName of the resource with GetAtt. Here is my serverless.yaml: ```YAML service:...
I am trying to export a function ARN that is defined in an environment variable on the provider environment: ``` provider: ... environment: BUILD_PRODUCT_FUNCTION_ARN: !GetAtt BuildProductLambdaFunction.Arn ``` The ARN is...
Hi @arabold, Recently, I spotted strange behavior which results in wrong *environment variables* being fetched by the plugin. I want to highlight that this problem does not occur with Serverless...
I.e: ``` provider: environment: DATA_API_RESOURCE_ARN: !Sub arn:aws:rds:${AWS::Region}:${AWS::AccountId}:cluster:${DBCluster} ``` will be resolved to (in the `.env` file): ``` DATA_API_RESOURCE_ARN=arn:aws:rds:${AWS::Region}:${AWS::AccountId}:cluster:${DBCluster} ``` expected to resolve to: ``` DATA_API_RESOURCE_ARN=arn:aws:rds:us-east-1:123456789011:cluster:stack-name-stage-dbcluster-SG455Y33 ```
Hi there! It seems like this plugin when used with serverless-offline executes some Serverless lifecycle hooks twice. Specifically, [this line](https://github.com/arabold/serverless-export-env/blob/master/src/index.js#L103). I am not familiar with that method, but I think...
Amazon announced the AWS Cloud Control API: https://aws.amazon.com/blogs/aws/announcing-aws-cloud-control-api/ From an example, it seems we might be able to use to resolve `Fn::GetAtt` functions in a consistent way: ``` aws cloudcontrol...
In v2.0 the plugin has removed fetching the stack outputs, while I'm not sure what you were referring to when you said it caused more problems than it solved, but...
Has the plugin been tested with [serverless v3](https://www.serverless.com/blog/serverless-framework-v3-is-live)? I just updated to serverless v3 and noticed a few issues: 1. environment values at function level are not exported, for example:...
serverless-export-env:2.2.0 node: 18 serverless: 3.24.1 in my serverless.tml in the environments section i have: environment: `APPSYNC_URL: !Sub ${Blindchat${sls:stage}GraphQlApi.GraphQLUrl}` then i run: `sls export-env -s dev --all` and in the .env...
Is it possible to disable this plugin when calling `serverless package` or `serverless deploy`? Tried with ```yml export-env: enableOffline: true getAttMap: MyEnvVar: 'foobar' ``` but it is still try to...