ACO Hands-on Final ITNW 1377 Final Exam You will make a working website using CloudFormation. Step 1: Create a Source bucket where you will be placing files used in your build. Step2: Upload a .jpg...

1 answer below »
Building a website in AWs cloudformation


ACO Hands-on Final ITNW 1377 Final Exam You will make a working website using CloudFormation. Step 1: Create a Source bucket where you will be placing files used in your build. Step2: Upload a .jpg file and an index.html file to this bucket. You may use mine as a starting point: https://s3.amazonaws.com/itnw1492-wed/site1.html Modify it to include your name and some feedback about the class, also have it point to your picture. Step 3: Make an Instance with a UserData script which installs the web service and uses your .jpg and index.html file. DELIVERABLE 1: The UserData code you used. Step 4: Test your site, then create an AMI off your instance and terminate the instance. Make a note of the ami id. Step 5: Create a web site and supporting infrastructure using CloudFormation. You may wish to start with the task3.yaml file in the Module 11, Lab 8. Make the following modifications: Description Final Exam 1377 Change the comment on line 4 The comment should include your name Parameters: LabVpcCidr Give it a different name and a range of 10.10.0.0/16 Parameters: PublicSubnetCidr Rename as Pub1377SubnetRange and give it an appropriate CIDR block Parameters: AMazonLinuxAMIID This section will not work in this lab. WHY?? Parameters: New item Create a parameter that holds the AMI id Resources Define a bucket that will include your first name as part of the bucket name Resources: the instance Define an instance. More notes below Resources: the VPC Name it VPC1377YourName and Tag it appropriately Resources: the IGW Tag it appropriately Resources: Security Group Name it Final1377SG, Change the group name and Tags appropriately Resources: EIP Create an EIP and associate with your web server Outputs Add the security group ID of your security group Outputs Add the public IP of your web server Outputs Add the Instance ID of your web server https://s3.amazonaws.com/itnw1492-wed/site1.html A few notes on your Instance: Use the ImageID of your AMI parameter definition. This is a lot of little changes to the file. I STRONGLY suggest making a copy of the task3.yaml file, and doing 1 element at a time. After every change, save the file with a different name and update your stack with the new file. WAIT and let it show you what changes will be made in CloudFormation update. Iterations suggested: Parameter creation and bucket Lab VPC IGW and VPCtoIGWConnection PublicRoute Table and Public Route Public Subnet and Route table association Security group Create Instance Create 3 new outputs Deliverables 2-4: Once completed, make screenshot/snips of your CloudFormation Resources, Parameters, and your Outputs tab. Turn in these 3 snips, your completed YAML file and the UserData code you used for your AMI. LEAVE EVERYTHING on, I will be logging in to review. You may do this all from the AWS Console. Here is the script I used for UserData, to get you started: #!/bin/bash yum install -y httpd systemctl start httpd systemctl enable httpd cd /var/www/html wget https://s3.amazonaws.com/itnw1492-wed/rainbowunicorn.jpg wget https://s3.amazonaws.com/itnw1492-wed/site1.html mv site1.html index.html Here are some examples of what your Resources, Parameters, and Outputs might look like: And here are some documentation websites that might be useful. Module 11 Lab 8 - task3.yaml https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2- instance.html https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems- manager-parameter-store/ https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-s3.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section- structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store/ https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store/ https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-s3.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html
Answered 4 days AfterMay 05, 2021

Answer To: ACO Hands-on Final ITNW 1377 Final Exam You will make a working website using CloudFormation. Step...

Shashi Kant answered on May 10 2021
128 Votes
Step1->
Set git remote to HTMl.sh project
$ git init
$ platform project:set-remote
Step2->
Now
you create a html file
Hello World

Step3->
Define routes
./.platform/routes.yaml
https://{default}/:
type: upstream
upstream: htmlhowto:http
Step4->
Now you add empty service servies.yml
./.platform/services.yaml
Step5->
Now add...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here