All About Cloud Formation Templates(CFT)
Hii folk
🚀 Excited to share day 12 of comprehensive 30 days of AWSlearning path 🎮🎉👇
Welcome to Day 12 of our comprehensive 30-day aws learning path! In today’s session, we’ll be delving into the fascinating world of cloud AWS cloud formation templet(CFT) . By the end of this lesson, we’ll have a solid understanding of cloud how it’s functions
Our goal is to focus on fundamentals then identify and learn the most commonly used services first and learn specialized services on a need to know basis.
What is the cloud formation?
Amazon web service(Aws) provide a service called Aws cloud formation that allows you to create and manage complex Aws resources and services using code .think of it a way to define your Aws infrastructure and service like servers, database, and network in a structured ,code -based format
It is like a magical assistant that helps to you create and manage various service on Aws without the hassle of doing everything manually .it especially useful for service like ec2 virtual server,s3(storage)autoscaling (adjusting server capacity) and load balancing(distributing traffic)
Benefits of aws cloud formation
Automation: AWS CloudFormation helps to automate the process of creating, configuring, and managing AWS resources. This allows for the infrastructure to be deployed quickly, reliably, and repeatedly.
Consistency and standardization: With AWS CloudFormation, it is possible to create standard templates of infrastructure stacks that can be used to create identical copies of the same infrastructure. This ensures consistency in the infrastructure deployment and makes it easier to maintain.
Cost savings: AWS CloudFormation helps to reduce costs by allowing customers to use existing infrastructure templates and reuse them across multiple environments. This reduces the cost of designing and deploying new infrastructure.
Security: AWS CloudFormation helps to ensure that all AWS resources are configured securely by using security policies and rules. This helps to protect the infrastructure from potential security threats.
HOW To Provision EC2-instance and LAMP package Uisng AWS Cloudformation
Step 1: Go to the Cloud formation dashboard on the AWS management console. Click on Create the stack.
Step 2: You will be redirected to this webpage. We will be using a sample template of Lamp Stack in this. Select the option: Use a sample template. Select the Lamp Stack template. Click on View in Designer to view the design of the template.
Step 3: Now you will be redirected to the designer page which shows the design of the template.
Step 4: These are the components of the template which we discussed earlier. Rename the template accordingly.
Step 5: This is the code written in JSON format which contains all the specifications and dependencies about the infrastructure to be created.
Step 6: Now click on the cloud-shaped upload button to come out of the designer.
Step 7: We will come back to the same web page. Click on Next.
Step 8: Specify the desired stack name over here
Step 9: Mention the name of the database you want to create on the MySQL database. Also, specify the password and name of the Create db-user.
Step 10: Choose the instance type. Select any available key pair which will be used in making an SSH connection with the instance. Click on Next.
Step 11: You don’t have to worry about the advanced settings. Click on Next.
Step 12: Click on Create a stack. The instance will be created with the LAMP package installed on it. You can easily work with PHP and MySQL on the instance.
Thanks for reading
I hope found this useful?
✅Reshare this with others so that it helps more people
✅Tag your colleagues and friends who you think will need this