amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

serverless-export-env functionality

Open oste opened this issue 4 years ago • 0 comments

Is this feature request related to a new or existing Amplify category?

auth, storage, function, api, predictions, xr

Is this related to another service?

No response

Describe the feature you'd like to request

I was hoping to be able to export environment variables in a similar fashion as to how serverless-export-env works

Describe the solution you'd like

I guess it would be a command like amplify export env that would export the current environment outputs to a .env file. For example, if I have a custom cdk resource with the following output it woudl create a .env file with snsTopicArn=someValue

     new cdk.CfnOutput(this, 'snsTopicArn', {
      value: topic.topicArn,
      description: 'The arn of the SNS topic',
    });

Describe alternatives you've considered

Not sure how this might tie into the existing aws-exports.js

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request
  • [ ] ⚠️ This feature might incur a breaking change

oste avatar Dec 15 '21 03:12 oste