puppetlabs-aws icon indicating copy to clipboard operation
puppetlabs-aws copied to clipboard

Upgrade EC2 Instance type

Open tintheparkin opened this issue 10 years ago • 3 comments
trafficstars

I've been testing out the possibility of upgrading instance types of previously puppet launched ec2 instances. I see that instance_type property is read-only, but would it be possible to upgrade instance types after ensure that the instance is stopped?

Has this issue come up previously?

tintheparkin avatar Jun 23 '15 10:06 tintheparkin

This is definitely something of interest, we just need a pattern that works. The trick here is that, to change the instance_type the instance is terminated and a new one launched. This is absolutely doable but requires some careful error handling. I'd love to see this feature.

garethr avatar Jun 23 '15 15:06 garethr

Thanks for replying! It sounds tedious, I should clarify though that my aim is to upgrade the instance type without terminating ebs backed instances. only to stop the instance, change isntance_type and then start the instance again. Much like when using the AWS webgui.

tintheparkin avatar Jun 23 '15 15:06 tintheparkin

Not too tedious hopefully, just requires multiple steps (like you say, stop instance, make change, start instance). This is definitely doable, just needs a nice pattern. instance_type is a good property to pick off first, I'd wager this could be generalised afterwards for other properties too.

garethr avatar Jun 23 '15 15:06 garethr