Prevent AWS CodeDeploy from adding a lifecycle hook to an Auto-scaling group when creating a deployment group?
Recent functionality added to AWS CodeDeploy causes it to add a lifecycle hook to an Auto-scaling group whenever that Auto-scaling group has been targeted by a new deployment group. The lifecycle hook causes a deployment to be triggered whenever a new instance is spun up by the ASG. I don't want this lifecycle hook to be created, but there doesn't seem to be any way that I can see to prevent it from being created automatically. I can always go in and delete the lifecycle hook after the fact, but it would be great if I could just prevent it from being created in the first place. How can I preempt the lifecycle hook?
Since you are not interested in the ASG lifecycle events, change your codedeploy's deployment group configuration to an ELB or just EC2 instance tags to which you want to deploy instead of specifying an ASG. This should solve your problem, but not recommended.
r3.xlarge vs t2 Instance
Can we create local Docker IoT containers for a SMACK-like environment with DC/OS and push them to our AWS VPC - if so, how?
Monitoring services of EC2 Windows instance using AWS CloudWatch
Error creating Key Pair: You are not authorized to perform this operation
DynamoDB regularly recieve error: “The AWS Access Key Id needs a subscription for the service”
error while reading data from redshift in spark scala
Log monitoring setup options in AWS
Running docker-compose with Rancher OS
How to send standard output (like echo) to S3 file
AWS: Security Group to allow access internet-facing Load balancer to be accessed from private instances
AWS X-ray open 'AWSXRay.log' at Error
Unable to map a list of numbers in API-Gateway
Using Amazon's affiliate API for autocompletion with SearchIndex (Category)
Redshift: insert column C1 of table T1 into column C2 of Table T2
How do I get RDS instance id for an Elastic Beanstalk environment?
Rolling deployment of Play Framework webapp on AWS ECS