Migrate ECS Fargate from x86 to ARM (Graviton)

What is Graviton? AWS Graviton is a custom-designed processor by Amazon Web Services (AWS) specifically optimized for their cloud infrastructure. Graviton processors are based on ARM architecture rather than the more traditional x86 architecture used by Intel and AMD processors. ARM processors are known for their energy efficiency and are commonly found in mobile devices … Read more

Increasing Amazon Linux 2 AMI /tmp Size

cd # change to your home directory fallocate -l 20G mydrive.img # create the virtual drive file mkfs -t ext3 mydrive.img # format the virtual drive sudo umount /tmp # unmount the /tmp sudo mount -t auto -o loop mydrive.img /tmp # mount the virtual drive  

How to delete stucked Route53 zone created by ECS service discovery

It happens when I tried to delete the NS that created by ECS service directory, then this error shows up: The resource hostedzone/Z1OWcan only be managed through servicediscovery.amazonaws.com (arn:aws:servicediscovery:us-east-1:561660628307:namespace/ns-c6lvlchj2gbcsobc) If there are services hanging around the in the NS you can’t delete then you could try: $ aws servicediscovery list-services $ aws servicediscovery delete-service –id= … Read more

Create AWS codebuild project with Terraform

Summary AWS Codebuild is fully managed build service that compiles source code, run tests, and produces software packages that are ready to reploy. To make it easier, we can create it’s infrastructure using terraform. Setup directory structure Before we begin, we can create our own directory structure for the infrastructure. Why this is important? because … Read more

Create docker image and push to AWS ECR

Image tag : test-image awsudo -u aws-profile aws ecr get-login –no-include-email –region ap-southeast-1 sudo docker build -t test-image . sudo docker tag codebuild:test-image 743977200366.dkr.ecr.ap-southeast-1.amazonaws.com/codebuild:test-image sudo docker push 743977200366.dkr.ecr.ap-southeast-1.amazonaws.com/codebuild:test-image