Srinivas R
Srinivas R

Reputation: 365

How to run single amazon AMI for three different environments ? like dev qa prod

How to run Single Amazon AMI for three different environments, while instance provisioning or waiting state i need to pass my own configuration files.

Upvotes: 0

Views: 293

Answers (3)

shabaz
shabaz

Reputation: 1

If you are using CFT, I would suggest mapping during instance provision.

Upvotes: 0

John Rotenstein
John Rotenstein

Reputation: 269091

You can get fancy and launch exactly the same instances, but add a tag to each instance indicating whether it is Dev/Staging/Prod.

The startup script can examine the tag attached to its EC2 instance and then configure itself accordingly.

Upvotes: 1

helloV
helloV

Reputation: 52375

Assuming you are using linux, see: Running Commands on Your Linux Instance at Launch

When launching, pass different user data for different environments.

Upvotes: 1

Related Questions