You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ The site will present *mysfits* available for adoption with some different chara
34
34
35
35
This sample application will use many different AWS services and features that modern applications leverage on AWS. But, learning about *what* those individual services and their features are is not the primary objective of this workshop. Instead, this workshop is meant to give you an experience of *how* developers are able to build modern applications by interacting with those features and services through the development tools that AWS provides.
36
36
37
+
To learn more about how to build your own **Well Architected** and modern application on AWS, please [visit here](https://aws.amazon.com/architecture/well-architected/) for additional content about following AWS best practices in your own architecture.
Copy file name to clipboardExpand all lines: module-1/README.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@
5
5
**Time to complete:** 20 minutes
6
6
7
7
**Services used:**
8
-
* AWS Cloud9
9
-
* Amazon Simple Storage Service (S3)
8
+
*[AWS Cloud9](https://aws.amazon.com/cloud9/)
9
+
*[Amazon Simple Storage Service (S3)](https://aws.amazon.com/s3/)
10
10
11
-
In this module, follow the instructions to create your cloud-based IDE on AWS Cloud9 and deploy the first version of the static Mythical Mysfits website. Amazon S3 is a highly durable, highly available, and inexpensive object storage service that can serve stored objects directly via HTTP. This makes it wonderfully useful for serving static web content (html, js, css, media content, etc.) directly to web browsers for sites on the Internet. We will utilize S3 to host the content for our Mythical Mysfits website.
11
+
In this module, follow the instructions to create your cloud-based IDE on [AWS Cloud9](https://aws.amazon.com/cloud9/) and deploy the first version of the static Mythical Mysfits website. [Amazon S3](https://aws.amazon.com/s3/) is a highly durable, highly available, and inexpensive object storage service that can serve stored objects directly via HTTP. This makes it wonderfully useful for serving static web content (html, js, css, media content, etc.) directly to web browsers for sites on the Internet. We will utilize S3 to host the content for our Mythical Mysfits website.
12
12
13
13
### Getting Started
14
14
15
15
#### Sign In to the AWS Console
16
-
To begin, sign in to the AWS Console for the AWS account you will be using in this workshop.
16
+
To begin, sign in to the [AWS Console](https://console.aws.amazon.com) for the AWS account you will be using in this workshop.
17
17
18
18
This web application can be deployed in any AWS region that supports all the services used in this application. The supported regions include:
19
19
@@ -53,7 +53,7 @@ When the IDE has finished being created for you, you'll be presented with a welc
53
53
54
54
#### Cloning the Mythical Mysfits Workshop Repository
55
55
56
-
In the bottom panel of your new Cloud9 IDE, you will see a terminal command line terminal open and read to use. Run the following git command in the terminal to clone the necessary code to complete this tutorial:
56
+
In the bottom panel of your new Cloud9 IDE, you will see a terminal command line terminal open and ready to use. Run the following git command in the terminal to clone the necessary code to complete this tutorial:
@@ -72,23 +72,36 @@ cd aws-modern-application-workshop
72
72
### Creating a Static Website in Amazon S3
73
73
74
74
#### Create an S3 Bucket and Configure it for Website Hosting
75
-
Next, we will create the infrastructure components needed for hosting a static website in Amazon S3 via the AWS CLI.
75
+
Next, we will create the infrastructure components needed for hosting a static website in Amazon S3 via the [AWS CLI](https://aws.amazon.com/cli/).
76
76
77
-
First, create an S3 bucket, replace the name below (mythical-mysfits-bucket-name) with your own unique bucket name. Copy the name you choose and save it for later, as you will use it in several other places during this workshop:
77
+
First, create an [S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html), replace the name below (mythical-mysfits-bucket-name) with your own unique bucket name. **Note: see the requirements for bucket names [here](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html#bucketnamingrules).** Copy the name you choose and save it for later, as you will use it in several other places during this workshop:
78
78
79
79
```
80
-
aws s3 mb s3://mythical-mysfits-bucket-name
80
+
aws s3 mb s3://REPLACE_ME_BUCKET_NAME
81
81
```
82
82
83
-
Now that we have created a bucket, we need to set some configuration options that enable the bucket to be used for static website hosting. This configuration enables the objects in the bucket to be requested using a registered public DNS name for the bucket, as well as direct site requests to the base path of the DNS name to a selected website homepage (index.html in most cases):
83
+
Now that we have created a bucket, we need to set some configuration options that enable the bucket to be used for [static website hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html). This configuration enables the objects in the bucket to be requested using a registered public DNS name for the bucket, as well as direct site requests to the base path of the DNS name to a selected website homepage (index.html in most cases):
All buckets created in Amazon S3 are fully private by default. In order to be used as a public website, we need to create an S3 **Bucket Policy** that indicates objects stored within this new bucket may be publicly accessed by anyone. Bucket policies are represented as JSON documents that define the S3 *Actions* (S3 API calls) that are allowed (or not not allowed) to be performed by different *Principals* (in our case the public, or anyone). The JSON document for the necessary bucket policy is located at: `~/environment/aws-modern-application-workshop/module-1/aws-cli/bucket-policy.json`. This file includes several places that you need to change to use the new bucket name you've created (indicated with `REPLACE_ME`).
91
+
All buckets created in Amazon S3 are fully private by default. In order to be used as a public website, we need to create an S3 [Bucket Policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) that indicates objects stored within this new bucket may be publicly accessed by anyone. Bucket policies are represented as JSON documents that define the S3 *Actions* (S3 API calls) that are allowed (or not not allowed) to be performed by different *Principals* (in our case the public, or anyone).
92
+
93
+
The JSON document for the necessary bucket policy is located at: `~/environment/aws-modern-application-workshop/module-1/aws-cli/website-bucket-policy.json`. This file contains a string that needs to be replaced with the bucket name you've chosen (indicated with `REPLACE_ME_BUCKET_NAME`).
94
+
95
+
**Note: Throughout this workshop you will be similarly opening files that have contents which need to be replaced (all will be prefixed with `REPLACE_ME_`, to make them easy to find using CTRL-F on Windows or ⌘-F on Mac.)**
96
+
97
+
To **open a file** in Cloud9, use the File Explorer on the left panel and double click `bucket-policy.json`:
0 commit comments