Shamoon
Shamoon

Reputation: 43639

How can I copy a config file to an AWS EB deployment?

I have set up a Node.js / express app and I am using aws eb to deploy.

enter image description here

That is how my config is set up to be environment specific. However, I don't want to put my config.prod.json in my source control. How can I get that put up to my deployed application?

Upvotes: 1

Views: 4187

Answers (1)

sap1ens
sap1ens

Reputation: 2957

You can use .ebextensions folder to add some commands to copy additional files from anywhere. More info:

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers.html http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html

Upvotes: 4

Related Questions