Launching the AWS instance using Terraform
Terraform is an open-source tool created by HashiCorp. It is used for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions. Terraform can manage existing and popular service providers as well as custom in-house solutions.
Configuration files describe to Terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state, and then executes it to build the described infrastructure. As the configuration changes, Terraform is able to determine what changed and create incremental execution plans which can be applied.
Task 1 : Have to create/launch Application using Terraform
Tools Required:-
1. AWS command line interface
2.Terraform
3.Putty and Puttygen.exe
I used Terraform for creating :
EBS Volume
Key Pair
Security Group
Instance
S3 Bucket
Cloudfront
Description:-
1. Create the profile that has all your Information in it.
2. Second we created the workspace and in that folder we created the Terraform file
3. Now we need to Write a code in Which we instruct the terraform to perform all the above specified tasks.
Above is the link for the Terraform file
4. We need to use command to install the terraform Plugin
Terraform init
after this command we have to check the syntax for this we will use the command
terraform validate
to apply the things we use command
terraform apply
5. Now we have to check the is the instance running. For this let go to GUI and check if it is Running or not Also all the details like volume attached.
Here we can see our server is running