AWS 184-[STOR]-Lab - [Challenge] S3 Exercise

Описание к видео AWS 184-[STOR]-Lab - [Challenge] S3 Exercise

#AWS 184-[STOR]-Lab - [Challenge] S3 Exercise

Check out my GitHub Repository - https://github.com/MFMKURIA/More-AWS-...
Portfolio
1. http://markfrancismk.sciawareness.com...
2. https://d2taxcp5hluc5o.cloudfront.net/
Let's dive into this AWS challenge lab for Amazon S3 step by step. I'll guide you through each part of the lab, explain the purpose behind each task, and provide details on AWS services that are relevant to this lab.

Lab Overview

In this lab, you will:
1. Create an S3 bucket.
2. Upload an object to the bucket.
3. Access the object through a web browser.
4. List the contents of the bucket using AWS CLI.

Preparation

1. Accessing the AWS Management Console:
Start the lab by selecting "Start Lab." Wait until you see "Lab status: ready" and close the Start Lab panel.
Open the AWS Management Console by selecting "AWS" on the lab page. Ensure your browser allows pop-ups if needed.
Arrange the AWS Management Console and the lab instructions side-by-side for convenience.
Go to the “Details” section and select “Show.” Copy the SecretKey, PublicIP, and AccessKey values to a text editor for later use.

Task 1: Connecting to the CLI Host Instance

1. Open EC2 Management Console:
In the AWS Management Console, use the search bar to find EC2 and select it. This will open the EC2 Management Console.

2. Select the CLI Host Instance:
In the navigation pane, click on Instances.
From the list, find and select the instance labeled as your CLI Host instance.

3. Connect to the Instance:
Click on Connect. This will open the EC2 Instance Connect tab.
Choose Connect to start a session with the instance.

Alternative Method:
If you prefer SSH, follow the guidance for Connecting to Your Linux Instance. You’ll need an SSH client and the provided SSH key.

Task 2: Configuring the AWS CLI

1. Set Up AWS CLI:
In the terminal of the CLI Host instance, run:
```bash
aws configure
```
You will be prompted to enter the following details:
AWS Access Key ID: Enter the value you copied for `AccessKey`.
AWS Secret Access Key: Enter the value for `SecretKey`.
Default region name: Enter `us-west-2` (or your designated region).
Default output format: Enter `json`.

This command configures the AWS CLI with your credentials, allowing you to interact with AWS services from the terminal.

Task 3: Finishing the Challenge

1. Create an S3 Bucket:
Go to the S3 Management Console.
Click on Create bucket.
Enter a unique name for your bucket (e.g., `my-unique-bucket-name`) and choose a region (e.g., `us-west-2`).
Click on Create bucket.

Purpose:
Buckets in S3 are containers for your objects. The name must be globally unique across all AWS accounts.

2. Upload an Object:
Select your newly created bucket.
Click on Upload.
Drag and drop a file or click on Add files to select a file from your local machine.
Click Upload to upload the file.

Purpose:
Uploading objects (files) to the bucket allows you to store and later access these files.

3. Access the Object via Browser:
Click on the file you uploaded.
Copy the Object URL (you can find this in the Object details section).
Open a new browser tab and paste the URL to access the file.

Purpose:
Accessing files via URL allows you to verify that your file is publicly accessible.

4. Make the Object Public:
Go back to the S3 Management Console.
Select your bucket and the uploaded file.
Click on Permissions and then Edit.
Under Public access, check Everyone (public access) to allow public access.
Click Save changes.

Комментарии

Информация по комментариям в разработке