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

Commit 2c01103

Browse files
committed
Updated Cloud9 instructions to use credentials helper rather than havung to create a new code-commit user
1 parent 8402e2c commit 2c01103

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

WebApplication/1_StaticWebHosting/README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,11 @@ Once you've chosen a region, you should deploy all of the resources for this wor
3434
### Create the git repository
3535
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]
3636
#### Using CodeCommit
37-
**:white_check_mark: Step-by-step directions**
38-
1. Create an IAM user for CodeCommit access. Go to the [IAM Console][iam-console]
39-
1. Select Users from the navigation bar and then **Add user**
40-
1. Name the user `wildrydes-codecommit` and select *Programmatic access*
41-
1. Select **Next: Permissions**
42-
1. Select *Attach existing policies directly* and then check "AWSCodeCommitFullAccess"
43-
1. Select **Next: Tags** and enter any tags you wish to identify this user
44-
1. Select **Create User** and then **Close** from the final page
45-
46-
![IAM user created](../images/iam-add-user.png)
47-
48-
Next you need to get credentials for the user to be able to access repositories in CodeCommit:
49-
50-
1. Select the User from the Users page in the IAM Console you just created
51-
1. Click the **Security credentials** tab
52-
1. Under "HTTPS Git credentials for AWS CodeCommit" click **Generate**
53-
54-
Be sure to save the credentials either locally or to a scratch pad somewhere for later use.
37+
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.
38+
```bash
39+
git config --global credential.helper '!aws codecommit credential-helper $@'
40+
git config --global credential.UseHttpPath true
41+
```
5542

5643
Next you need to create the repository and clone it to your Cloud9 environment:
5744
1. Open the [AWS CodeCommit console][codecommit-console]

0 commit comments

Comments
 (0)