arabold / serverless-export-env

Serverless plugin to export environment variables into a .env file
MIT License
102 stars 34 forks source link

stack resoruces output as env vars #13

Closed lielran closed 4 years ago

lielran commented 5 years ago

stack resources output as env vars

In case you have this section in your serverless.yml:

     Resources:
  NewResource:
      Type: AWS::S3::Bucket
      Properties:
        BucketName: my-new-bucket
  Outputs:
     NewOutput:
       Description: "Description for the output"
       Value: "Some output value"

this PR will export the Outputs as env vars. in this example will add NEW_OUTPUT: "Some output value"