Day66-Part2/Terraform Hands-on Project - Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC) Techniques ๐Ÿš€๐Ÿš€

Day66-Part2/Terraform Hands-on Project - Build Your Own AWS Infrastructure with Ease using Infrastructure as Code (IaC) Techniques ๐Ÿš€๐Ÿš€

ยท

1 min read

  • Launch an EC2 instance in the public subnet with the following details:

  • AMI: ami-0557a15b87f6559cf

  • Instance type: t2.micro

  • Security group: Allow SSH access from anywhere

  • User data: Use a shell script to install Apache and host a simple website

  • Create an Elastic IP and associate it with the EC2 instance.

  • Open the website URL in a browser to verify that the website is hosted successfully.

terraform init

terraform plan

terraform apply

Userdata.sh

Elastic IP:

Output:

github:https://github.com/gsbarure/Terraform-infrastructure_build.git

linkdin---https://www.linkedin.com/in/gajanan-barure-7351a4140

Happy Learning :)

Thank you for reading!! Hope you find this helpful.

#day66#part2#90daysofdevops#devopscommunity#

ย