I had a AWS CloudFormation template that included an Auto Scaling Group, Launch Template and Security Group. The Auto Scaling Group being created was to use the Launch Template being created. And that Launch Template was to use the Security Group being created. When I created my CloudFormation stack, the stack failed with this error when my Auto Scaling Group ...
Read More »AWS CloudFormation: Target Group does not have an associated Load Balancer
Yesterday I was using an AWS CloudFormation template to ultimately create an ECS Service (Fargate type), but also create resources including an Application Load Balancer, Target Group and IAM Roles. When the stack was being created, I received the following error: The target group with targetGroupArn arn:aws:elasticloadbalancing:us-east-1:599074885545:targetgroup/a204516-S2S-Sandbox-TargetGroup/9f4aa2eb4051a952 does not have an associated load balancer. (Service: AmazonECS; Status Code: 400; Error ...
Read More »AWS DynamoDB version field using AWS SDK for Java 2
It is useful to have a version attribute on any entity saved to anAWS DynamoDB database which is simply a numeric indication of the number of times the entity has been modified. When the entity is first created it can be set to 1 and then incremented on every update. The benefit is immediate – an indicator of the number ...
Read More »Why use Cloud Computing? Advantages and Disadvantages
Cloud Computing has been a buzz word in the IT world from the last few years. When it first appeared, like many things, a lot of people has dismissed it as being next big thing, but cloud computing has certainly lived up to expectation and truly shift how Information technology arm of business function today.Cloud Computing is made of two ...
Read More »How to install Apache Web Server on EC2 Instance using User data script
Hello Friends, In this tutorial, we will see how we can install Apache Web Server on EC2 instance using user data script. In one of my previous tutorials,I have already explained how we can launch an EC2 instance using AWS console.If you have not already gone through that,I will recommend to please go through thatfirst ,as that is prerequisite for ...
Read More »AWS Alarms for Application Errors
Monitoring is key for any real-world application. You have to know what’s happening and be alerted in real time if something wrong is happening. AWS has CloudWatch for that, and gives you a lot of metrics automatically. But there are some that you have to define yourself. And then you need to define proper alarms. Here I’ll focus on hour: ...
Read More »Destroy AWS resources: Cloud-Nuke or AWS-Nuke?
So you’re working on a development account, and Terraform is stuck in a cycle, not allowing you to easily destroy the remaining resources? Enter the world of nuke CLIs ! cloud-nuke At the time of writing, I used version v0.1.16 From Gruntwork, written in Go, will not destroy as many objects as aws-nuke; has been around since May 2017 If ...
Read More »AWS Lambda to save data in DynamoDB
In this tutorial, we will see how using AWS Lambda we can save data in Dynamo DB. Here are the steps which are required : –Create a table in the Dynamo DB with the name Employee– Create a AWS Lambda function which can save firstName and surName of an employee using a Employee POJO in the Dynamo DB– Create a ...
Read More »AWS Lambda function with Java Pojo as Input Output Example
In the previous tutorial, we saw How to Create AWS Lambda function with Java and we passed String as input and also returned String as Output.I will recommend to go through that tutorial first, if you are creating lambda function for the first time. In this tutorial, we will see, how we can pass Java Plain old Java object(POJO) as input ...
Read More »