Vishwash Roy
Vishwash Roy

Reputation: 281

Will AWS Auto scaling create EC2 with my application which is already deployed

I have one EC2 which has few application deployed in IIS, when i try to auto scale it creates an instance but those application are not deployed in newly created instance.

Any help is appreciated.

Upvotes: 1

Views: 131

Answers (1)

Marcin
Marcin

Reputation: 238507

There are generally three ways you would bootstrap your instances in autoscaling group:

  • Write User Data script that would run at instance creation time and install, setup and run your application when the instance is launched.
  • Create custom AMI containing your application and use that AMI in your ASG's launch template/configuration.
  • Deploy your application to the instances through CodeDeploy. This will also allow you to re-deploy new versions of it easily.

Upvotes: 2

Related Questions