In this post I'll create multiple resources in AWS cloud using Terraform . Terraform is an infrastructure as code( IAC ) software which can do lots of things but it is superb in cloud automation. To use Terraform we have write code in a high-level configuration language known as Hashicorp Configuration Language , optionally we can write code in JSON as well. I'll create below service using Terraform- 1. Create the key-pair and security group which allow inbound traffic on port 80 and 22 2. Launch EC2 instance. 3. To create EC2 instance use same key and security group which created in step 1 4. Launch Volume(EBS) and mount this volume into /var/www/html directory 5. Upload index.php file and an image on GitHub repository 6. Clone GitHub repository into /var/www/html 7. Create S3 bucket, copy images from GitHub repo into it and set permission to public readable 8 Create a CloudFront use S3 bucket(which contains images) and use the CloudFront URL to update code in /var/w...
Hello! Welcome to my Technical blog. My Name is Rakesh Kumar and I’ve more than 7 years of experience in Linux and Open Source technologies. If you are looking for technical information about Linux(Server Hardening, Diagnostics & Troubleshooting etc), Ansible, OpenStack Cloud Solution, Containers(K8s/OCP), DevOps, Machine Learning and Nagios Event Monitoring tool.... you have come to the right place. "I believe Learning and earning shouldn't stop", This is my story!