Static Website Configuration Using the AWS CLI

Learn to set up static website configuration using the AWS CLI

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:

    <title>Home Page</title>
  <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"/>

This is the command to upload an object:

aws s3 cp index.html s3://my-pets

Get hands-on with 1200+ tech skills courses.