Reputation: 365
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
Reputation: 1
If you are using CFT, I would suggest mapping during instance provision.
Upvotes: 0
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
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