Swap URL: This is for blue/green deployment. The idea is to update the floating DNS to point to different stack's ELB CNAME. It allows us to easily divert the traffics to different backend stack, but keep it transparent to users. Cloudformation snippet "Resources": { "Route53DNSRecord": { "Properties": { "Comment": "Floating DNS Record", "HostedZoneName": { "Fn::Join": … Continue reading Bamboo plan for AWS build part 4
Tag: AWS
Bamboo plan for AWS build part 3
Continue with the Bamboo plan for AWS build, now it is time to look into the deployment plan. For each environment, I got 4 sub plans: Create Stack, Deploy Config, Swap URL and Delete Stack. Create Stack: As explained in the part 1, Stack means the infrastructure. e.g A Nginx stack has those components: ELB, Autoscaling … Continue reading Bamboo plan for AWS build part 3
Bamboo plan for AWS build part 2
Let's take a closer look at the build plan. It has four stages, and the names are self explanatory. Checkout - Check out the source code from one or more repositories. Package - Build the code or create a package of the binaries then share them as artifacts. Bake - Create new AMI. Share - Share the AMI … Continue reading Bamboo plan for AWS build part 2
Bamboo plan for AWS build part 1
We use both Bamboo and AWS. Making those two work together is really a amazing thing for DevOps. In this blog, I am going to talk about my favorite bamboo plan that supports quick build, hot code deployment and blue/green deployment. We name such Bamboo plan as AWS pipeline, as it is only used for AWS … Continue reading Bamboo plan for AWS build part 1
Get S3 Bucket Size
I did not realize that you can not find out the bucket size in the AWS console until some one asked me today. Here is a quick command to get the total size. % for each in bucket1 bucket2; do echo -n $each; aws s3 ls --summarize --human-readable --recursive s3://$each | grep -i 'Total Size'; … Continue reading Get S3 Bucket Size