puppetlabs-aws
puppetlabs-aws copied to clipboard
Upgrade EC2 Instance type
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?
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.
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.
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.