Page 1 of 1

Zend Server Cloudformation Question

Posted: Thu Jun 08, 2017 11:50 am
by terr3089
I have an Zend Server 8 cluster based on the supplied Zend cloudformation template. I modified it in the CMInstance MetaData/AWS::CloudFormation::Init section to make a change to httpd.conf. It worked fine and as if by magic all the new autoscaling group instances have the same modification in them despite nothing being added to the Launchconfig.


My problem now is that I have an older cluster, created with an earlier version of the template which does not have the modification to httpd.conf. I can't really do a Cloudformation Update because of manual changes done since the stack was created.

I can update all the instances by hand and it's fine but when new instances are created in the autoscaling group the change is not propagated to them.

So my question is how can I get these changes to propagate to the new autoscaling group instances or at least can anyone help me understand how it works when the stack is created using the updated template



Re: Zend Server Cloudformation Question

Posted: Wed Jun 14, 2017 11:18 am
by dima_z_zend
You can not edit existing launch configuration, but you copy it and alter user data section when creating new copy.
After you create new launch configuration with desired changes, you should edit your auto scaling group to make it use new launch configuration.
All that can be done either using AWS CLI or AWS Console (EC2 / Auto Scaling).