0% found this document useful (0 votes)
4 views

Lab 5

Uploaded by

kprincity
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Lab 5

Uploaded by

kprincity
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

INFT 1210

Lab Activity 5
Name:
Student Number:

Submission Requirements:
1. Create a Word File named with the following format: [yourlastname_LabActivity#.docx]
2. Include the questions you are answering in your submission file.
3. Include appropriate screenshots if applicable that are well formatted, cropped, labeled, and
aligned.
4. Include your scripts file/s in the solution box.

Total 18 Marks
Note: Please read the rubric attached to the Lab Activity to comprehend the
grading criteria

Scenario:

You have just taken a learning session on automation in the cloud and content caching. You’ve been
tasked with deploying an automation instance in the cloud for future automation across Azure, GCP and
AWS as well as deploying a CDN distribution on AWS that point to a static website in object storage.

Note: Use your newly personal accounts for these tasks

Note: You are expected to implement your solution with considerations “Well Architected Framework”
Principles (Operational Excellence, Security, Reliability, Performance Efficiency & Cost Optimization).

Note: You can perform all your Terraform testing against your cloud account
locally prior to moving your operation to a cloud instance to reduce your cost at
testing time.
Use <yourelastname> as a prefix for resource naming context.

Note: DELETE ALL RESOURCES WHEN YOU HAVE COMPLETED YOUR


TASKS!!!!!
INFT 1210

Automation:
Automation with Terraform across Clouds

Tasks:

 Install the Terraform providers for AWS, Azure and GCP on one virtual machine on any of the
three (3) cloud platforms (AWS, GCP and Azure).
o Create one resource on each platform to prove that your access to the platforms are
functions (resource can be a VM, a VPC/VNet etc.)

Deliverables:

Note: Accurate, high quality and well formatted screenshots required as proof/evidence. Please do not
submit screen shots of your tasks process as the deliverables are only concerned with the results.

1. Show proof of resource created on GCP with terraform. (1 Mark)


2. Show proof of resource created on AWS with terraform. (1 Mark)
3. Show proof of resource created on Azure with terraform. (1 Mark)
4. Show proof that all scripts are deployed from the same cloud VM. (1 Mark)
5. Submit a copy of your terraform state file for each deployment. (3 Marks)

Useful Links:

Installing Azure CLI on Linux

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script

Automation and Content Caching:


Automation and Content Delivery Networks

Tasks:

 Use Terraform to deploy a static website with CDN services on AWS.


 Use the terraform script provided for creating the S3 bucket and correct issues/errors with the
script. The script has five (5) errors that need to be resolved.
o A working script creates the following:
 A public bucket
 Website hosting turned on
 ACL set to “public-read”
 Bucket policy that allows object reading for all users
 Replace the bucket prefix in the script with your lastname.
 Add the terraform configuration for creating a CDN (CloudFront) that uses your S3 bucket as the
origin.
INFT 1210

o Every possible attribute for CloudFront configuration is NOT needed in your script, just
the essentials.
o Origin information is needed.
o Default caching behavior is needed.
o Restriction is needed.
o Viewer policy is needed.
o Certification is needed (CloudFront certificate).
 Submit your completed terraform script as cdn_s3_yourlastname.tf.

Deliverables:

Note: Accurate, high quality and well formatted screenshots required as proof/evidence. Please do not
submit screen shots of your tasks process as the deliverables are only concerned with the results.

6. Completed terraform script. (1 Mark)


7. S3 section of the script is functional (4 Marks)
8. CDN Section of the script is working (5 Marks)
9. An index.html webpage successfully loads from your CDN when the instructor executes the
script and adds an index.html to the created S3 bucket. (1 Mark)

Note: DELETE ALL RESOURCES WHEN YOU HAVE COMPLETED YOUR


TASKS!!!!!

You might also like