Codedeploy
Uses:
run and build code on some group/ec2 instances
Continuous Deployment with GitHub
Target some group or ec2 instances and run and build code. then update the machines with rollback and load balancing managing it
Applications are groups of deployment groups which specify a target and IAM role to use when creating deployment
Setup
Must have codedepoy agent installed and running on ec2 instance
For usage with autoscaling group, throw up an instance install codedeploy and right click instance and create AMI image
/opt/codedeploy-agent/deployment-root/
holds the bundles downloaded and stores the last 5 deployments
Appspec
Code deploy looks at the appspec.yml file at your root folder to figure out what to dot
LifeCycle Events
This is confusing and changes based on inplace deployments or blue/green
3600 max per app
Targets
EC2 Instances Tags, can run a deployment that runs a dep update or one time thing
Autoscaling, can attach to autoscaling gorup and codedeploy when new instance is needed
Logs
Logs on ec2 can be viewed at
/opt/codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log
Bugs
If traffic lifecycles takes forever and there is a load balancer, the traffic depends on health checks defined by the target group
If nothing even starts, then you probably didnt install the codedeploy agent on the EC2s
Last updated