Skip to content

Commit

Permalink
feat: update terraform-aws-ecs-codepipeline dependency (#52)
Browse files Browse the repository at this point in the history
* feat: update terraform-aws-ecs-codepipeline dependency

* fix: enable anonoymous github access for test
  • Loading branch information
jhosteny authored Jul 3, 2020
1 parent 7ec95c0 commit 337234d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ Available targets:
| environment | The environment variables to pass to the container. This is a list of maps | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `null` | no |
| github\_oauth\_token | GitHub Oauth Token with permissions to access private repositories | `string` | `""` | no |
| github\_webhook\_events | A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) | `list(string)` | <pre>[<br> "push"<br>]</pre> | no |
| github\_webhooks\_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB\_TOKEN or `github_webhooks_token`) | `bool` | `false` | no |
| github\_webhooks\_token | GitHub OAuth Token with permissions to create webhooks. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no |
| health\_check\_grace\_period\_seconds | Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers | `number` | `0` | no |
| healthcheck | A map containing command (string), timeout, interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy), and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries) | <pre>object({<br> command = list(string)<br> retries = number<br> timeout = number<br> interval = number<br> startPeriod = number<br> })</pre> | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
| environment | The environment variables to pass to the container. This is a list of maps | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> | `null` | no |
| github\_oauth\_token | GitHub Oauth Token with permissions to access private repositories | `string` | `""` | no |
| github\_webhook\_events | A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) | `list(string)` | <pre>[<br> "push"<br>]</pre> | no |
| github\_webhooks\_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB\_TOKEN or `github_webhooks_token`) | `bool` | `false` | no |
| github\_webhooks\_token | GitHub OAuth Token with permissions to create webhooks. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no |
| health\_check\_grace\_period\_seconds | Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers | `number` | `0` | no |
| healthcheck | A map containing command (string), timeout, interval (duration in seconds), retries (1-10, number of times to retry before marking container unhealthy), and startPeriod (0-300, optional grace period to wait, in seconds, before failed healthchecks count toward retries) | <pre>object({<br> command = list(string)<br> retries = number<br> timeout = number<br> interval = number<br> startPeriod = number<br> })</pre> | `null` | no |
Expand Down
1 change: 1 addition & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ module "ecs_web_app" {
codepipeline_enabled = var.codepipeline_enabled
badge_enabled = var.codepipeline_badge_enabled
github_oauth_token = var.codepipeline_github_oauth_token
github_webhooks_anonymous = var.codepipeline_github_webhooks_anonymous
github_webhooks_token = var.codepipeline_github_webhooks_token
github_webhook_events = var.codepipeline_github_webhook_events
repo_owner = var.codepipeline_repo_owner
Expand Down
6 changes: 6 additions & 0 deletions examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,12 @@ variable "codepipeline_github_webhooks_token" {
default = ""
}

variable "codepipeline_github_webhooks_anonymous" {
type = bool
default = false
description = "Github Anonymous API (if `true`, token must not be set as GITHUB_TOKEN or `github_webhooks_token`)"
}

variable "codepipeline_github_webhook_events" {
type = list(string)
description = "A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)"
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ module "ecs_codepipeline" {
attributes = var.attributes
region = var.region
github_oauth_token = var.github_oauth_token
github_anonymous = var.github_webhooks_anonymous
github_webhooks_token = var.github_webhooks_token
github_webhook_events = var.github_webhook_events
repo_owner = var.repo_owner
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,12 @@ variable "github_webhooks_token" {
default = ""
}

variable "github_webhooks_anonymous" {
type = bool
default = false
description = "Github Anonymous API (if `true`, token must not be set as GITHUB_TOKEN or `github_webhooks_token`)"
}

variable "github_webhook_events" {
type = list(string)
description = "A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/)"
Expand Down

0 comments on commit 337234d

Please sign in to comment.