I'm using the UserData
field in a CloudFormation
template to install software on the instance. When I update the UserData
I would like CloudFormation
to replace the instance. However, UserData
is not a replace field and as a result the instance is stopped but not replaced and the new UserData
script is never run.
Is there a way I can update the UserData
with CloudFormation
?
I'm referring to this documentation.