Static Website Configuration Using the AWS CLI
Learn to set up static website configuration using the AWS CLI
We'll cover the following
Upload an index document using the CLI
The process of uploading an index document using the CLI is similar to uploading any other object we’ve learned while working with AWS CLI commands:
See the code below for the index.html
object:
<html>
<head>
<title>Home Page</title>
</head>
<body>
<h1>Welcome to my website</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</p>
<img src="./dingo.jpg"/>
</body>
</html>
This is the command to upload an object:
aws s3 cp index.html s3://my-pets
Get hands-on with 1200+ tech skills courses.