Search code examples
amazon-web-servicesamazon-ec2development-environmentproduction-environment

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.


Solution

  • 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.