Zend Server Cloudformation Question

General discussion forum for the Zend Server

Zend Server Cloudformation Question

Postby terr3089 on Thu Jun 08, 2017 11:50 am

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.

Great

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

Thanks

Terry
terr3089
 
Posts: 14
Joined: Tue Sep 22, 2015 10:05 am

Re: Zend Server Cloudformation Question

Postby dima_z_zend on Wed Jun 14, 2017 11:18 am

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).
Dmitry Zbarski
Cloud Integration Engineer
Zend Technologies, Ltd.
dima_z_zend
 
Posts: 15
Joined: Sun Jul 17, 2011 3:17 pm
Location: Ramat Gan, Israel


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 2 guests

cron