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
Step 3: Make an Instance with a UserData script which installs the web service and uses your .jpg and
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
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
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
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.
Parameter creation and bucket
IGW and VPCtoIGWConnection
PublicRoute Table and Public Route
Public Subnet and Route table association
Create 3 new outputs
Once completed, make screenshot/snips of your CloudFormation Resources, Parameters, and your
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:
yum install -y httpd
systemctl start httpd
systemctl enable httpd
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