Task 2- AWS
Task Description
Perform the task-1 using EFS instead of EBS service on the AWS as,
Create/launch Application using Terraform
1. Create Security
group which allow the port 80.
2. Launch EC2
instance.
3. In this Ec2
instance use the existing key or provided key and security group which we have
created in step 1.
4. Launch one Volume
using the EFS service and attach it in your vpc, then mount that volume into
/var/www/html
5. Developer have
uploded the code into github repo also the repo has some images.
6. Copy the github
repo code into /var/www/html
7. Create S3 bucket,
and copy/deploy the images from github repo into the s3 bucket and change the
permission to public readable.
Create a Cloudfront using s3 bucket(which contains images) and use the Cloudfront URL to update in code in /var/www/html
Optional
Integrate this task with the Jenkins.
Building the task -
Initializing the terraform and terraform code -
We write a terraform code to launch a instance on AWS and after it apply terraform with this code file.

















Comments
Post a Comment