Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 98ede94

Browse files
authored
Merge pull request #260 from ckamps/master
Fix for issue #253 - clarifying Git repo options
2 parents 448b6a1 + c357efb commit 98ede94

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

WebApplication/1_StaticWebHosting/README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@ Once you've chosen a region, you should deploy all of the resources for this wor
3232
![Region selection screenshot](../images/region-selection.png)
3333

3434
### Create the git repository
35-
You have two options for this first step which is to either use [AWS CodeCommit][commit] or [GitHub][github] to host your site's repository. The choice is yours. If you have a GitHub account feel free to use that. Otherwise [CodeCommit is included in the AWS Free Tier][codecommit-free]
36-
#### Using CodeCommit
35+
You have two options to manage the source code for this module:
36+
37+
* [AWS CodeCommit][commit] - CodeCommit access is included in the [AWS Free Tier][codecommit-free].
38+
* [GitHub.com][github] - If you're more comfortable with GitHub.com and already have an account.
39+
40+
#### Option 1: Using AWS CodeCommit
41+
**:white_check_mark: Step-by-step directions**
42+
3743
The AWS Cloud9 development environment comes with AWS managed temporary credentials that are associated with your IAM user. You use these credentials with the AWS CLI credential helper. Enable the credential helper by running the following two commands in the terminal of your Cloud9 environment.
44+
3845
```bash
3946
git config --global credential.helper '!aws codecommit credential-helper $@'
4047
git config --global credential.UseHttpPath true
@@ -55,16 +62,16 @@ Now from your Cloud9 development environment:
5562
warning: You appear to have cloned an empty repository.
5663
ec2-user:~/environment $
5764
```
58-
59-
#### Additional Github Step (This step is only required if you're using Github instead of Codecommit)
65+
#### Option 2: Using GitHub.com
6066
**:white_check_mark: Step-by-step directions**
67+
6168
1. Follow the instructions on [GitHub][github] to [Create a repository][create-repo]. NOTE: You should not create a first commit, just create the repository.
6269
1. Clone the repository locally using your GitHub credentials
6370
1. If you do not have credentially locally, or want to use Cloud9 for today's lab, follow these steps to [Generating a new SSH key and adding it to the ssh-agent][github-new-sshkey]
6471
1. [Clone the repository][github-clone]
6572
6673
#### Populate the git repository
67-
Once your git repository is created and cloned locally, you'll need to pull in the files for your website and sync them up to the repository.
74+
Once you've used either AWS CodeCommit or GitHub.com to create your git repository and clone it locally, you'll need to copy the web site content from an existing publicly accessible S3 bucket associated with this workshop and add the content to your repository.
6875
6976
**:white_check_mark: Step-by-step directions**
7077
From your Cloud9 development environment(or local environment)

0 commit comments

Comments
 (0)