Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Commit 858e9b4

Browse files
committed
Prepare 0.4.0 release
1 parent dc9a901 commit 858e9b4

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
terraform-aws-github-ci-0.4.0 (2017-03-30)
2+
3+
* Refactored complete code base into TypeScript
4+
15
terraform-aws-github-ci-0.3.0 (2017-12-03)
26

37
* Fixed compatibility errors with Terraform 0.11

README.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,39 @@ regardless of how much you use them.
3737

3838
## Usage
3939

40+
You need an AWS and GitHub account and a repository you want to be built. The
41+
repository must specify a `buildspec.yml` which is documented [here][2]. First,
42+
you need to go to the [CodeBuild][3] dashboard in your region, manually create
43+
a new project and choose GitHub as the **Source provider**, allowing AWS to
44+
authorize your account.
45+
46+
[2]: http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.htm
47+
[3]: https://console.aws.amazon.com/codebuild/home
48+
4049
### Standalone
4150

42-
You need an AWS and GitHub account and a repository you want to be built. The
43-
repository must specify a `buildspec.yml` which is documented [here][2]. If you
44-
want to get started straight away and have no experience in Terraform, just
45-
[set up your AWS credentials][3], [install Terraform][4], clone the repository
46-
and apply the configuration from the root folder with:
51+
If you want to get started straight away and have no experience in Terraform,
52+
just [set up your AWS credentials][4], [install Terraform][5], clone the
53+
repository and apply the configuration from the root folder with:
4754

4855
``` bash
4956
terraform apply \
5057
-var github_owner=<owner> \
5158
-var github_repository=<repository> \
5259
-var github_oauth_token=<oauth-token> \
53-
-var namespace=<something-unique-for-you>
60+
-var namespace=<unique-identifier>
5461
```
5562

56-
The unique namespace is used for naming resources, specifically important for S3 buckets which are globally unique.
63+
All resources are prefixed with the value specified as `namespace`. If the S3
64+
bucket name (see below) is not explicitly set, it's set to the given `namespace`
65+
which means there must not already exist and S3 bucket with the same name.
5766

5867
Now, when you push to `master`, or create a pull request, CodeBuild will
5968
automatically build the commit and report the status back to GitHub.
6069

70+
[4]: http://docs.aws.amazon.com/de_de/cli/latest/userguide/cli-chap-getting-started.html
71+
[5]: https://www.terraform.io/downloads.html
72+
6173
### Module
6274

6375
Include and configure this module in your Terraform configuration:
@@ -80,12 +92,9 @@ the terminal.
8092

8193
**Note**: the OAuth-token is currently mandatory, because Terraform doesn't
8294
support conditional blocks inside resources. However, this feature is currently
83-
[being implemented][5] and should be released shortly. You need to go to [CodeBuild](https://eu-west-1.console.aws.amazon.com/codebuild/home) in your region, manually start creating a new project and choose GitHub as the **Source provider**, allowing AWS to authorize to your account.
95+
[being implemented][6] and should be released shortly.
8496

85-
[2]: http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.htm
86-
[3]: http://docs.aws.amazon.com/de_de/cli/latest/userguide/cli-chap-getting-started.html
87-
[4]: https://www.terraform.io/downloads.html
88-
[5]: https://github.com/hashicorp/terraform/issues/7034
97+
[6]: https://github.com/hashicorp/terraform/issues/7034
8998

9099
## Configuration
91100

@@ -110,7 +119,7 @@ The following variables can be configured:
110119

111120
#### `namespace`
112121

113-
- **Description**: AWS resource namespace/prefix, *only lowercase alphanumeric characters and hyphens allowed*
122+
- **Description**: AWS resource namespace/prefix (lowercase alphanumeric)
114123
- **Default**: `"github-ci"`
115124

116125
### Optional

0 commit comments

Comments
 (0)