Terraform Assignment: Getting Started
Assignment 1
Create a new directory and write a terraform code which would create Ec2 instance and use Existing Security Group and Key.
Assignment 2
Create a new directory and write a terraform code which would create Security Group and new Key and create Ec2 instance and use newly created Security Group and Key.The security group should allow incoming traffic on port 22 (SSH) and port 80 (HTTP).
Assignment 3
Write a terraform code would create following resources
- keypair (Pub – ON AWS – PVT – Local)
- Display a pvt on Console
- Create a Security group must open 80 Port
- Create a Ec2 instance Ubuntu using the same Key & SG which you created above.
- You must install/Start apache2 in EC2 instance
$ apt-get update
$ apt-get install apache2 -y
$ systemctl start apache2
Terraform Assignment: Module
- Create a Terraform module that provisions an Amazon S3 bucket and an associated CloudFront distribution for content delivery.
- Write a Terraform module that creates an Amazon RDS database instance and an EC2 instance to connect to the database.
- Develop a Terraform module that sets up an Amazon VPC with public and private subnets and an Internet Gateway for Internet access.
- Create a Terraform module that provisions an Amazon Elastic Container Service cluster and a corresponding load balancer.
- Write a Terraform module that creates an Amazon Elastic File System and mounts it on an EC2 instance.
- Build a Terraform module that sets up an Amazon Route 53 hosted zone and an associated record set.
- Develop a Terraform module that provisions an Amazon API Gateway and corresponding Lambda functions for serverless application deployment.
- Write a Terraform module that creates an Amazon CloudWatch dashboard for monitoring metrics from multiple AWS services.
- Build a Terraform module that sets up an Amazon Elastic Load Balancer and associated Auto Scaling Group for high availability & use this module in another Module which would create 2 Ubuntu Vms and loadbalance these 2 Vms using ELB.
- Create a Terraform module that provisions an Amazon ECS Fargate task definition and corresponding IAM roles and policies for task execution.
How to Submit Assignment: Please publish it at www.Debug.School and share a URL in comment box.
Terraform FAQs
- What is Terraform, and how does it work?
- What are the benefits of using Terraform?
- How does Terraform differ from other infrastructure as code tools?
- What is the syntax for creating Terraform configurations?
- How do I declare resources in Terraform?
- How do I manage dependencies between resources in Terraform?
- What are Terraform modules, and how do I use them?
- How do I deploy and manage infrastructure with Terraform?
- How do I manage state in Terraform?
- How do I use Terraform with cloud providers such as AWS, Azure, and Google Cloud Platform?
- How do I debug Terraform configurations?
- How do I version control Terraform configurations?
- How do I test Terraform configurations?
- How do I secure Terraform configurations?
- How do I integrate Terraform with other tools and services in my stack?
Answer – Write a terraform code which would create Ec2 instance and use Existing Security Group and Key
Answer – write a terraform code which would create Security Group and new Key and create Ec2 instance and use newly created Security Group and Key.The security group should allow incoming traffic on port 22 (SSH) and port 80 (HTTP).
Latest posts by Rajesh Kumar (see all)
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024
- Top Global Medical Tourism Companies in the World - December 20, 2024