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

Commit d85511a

Browse files
chore: fix resource tags for multi-runner example (#3601)
- fix resource taging in mult runner example - align ephemeral example with default and mult-runner --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 581a4bf commit d85511a

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
lines changed

Diff for: examples/ephemeral/.terraform.lock.hcl

+24-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: examples/ephemeral/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ terraform output webhook_secret
6161

6262
| Name | Description | Type | Default | Required |
6363
|------|-------------|------|---------|:--------:|
64+
| <a name="input_environment"></a> [environment](#input\_environment) | Environment name, used as prefix | `string` | `null` | no |
6465
| <a name="input_github_app"></a> [github\_app](#input\_github\_app) | GitHub for API usages. | <pre>object({<br> id = string<br> key_base64 = string<br> })</pre> | n/a | yes |
6566

6667
## Outputs

Diff for: examples/ephemeral/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
environment = "ephemeral"
2+
environment = var.environment != null ? var.environment : "ephemeral"
33
aws_region = "eu-west-1"
44
}
55

Diff for: examples/ephemeral/variables.tf

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ variable "github_app" {
66
key_base64 = string
77
})
88
}
9+
10+
variable "environment" {
11+
description = "Environment name, used as prefix"
12+
13+
type = string
14+
default = null
15+
}

Diff for: examples/multi-runner/main.tf

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ module "runners" {
5757
id = var.github_app.id
5858
webhook_secret = random_id.random.hex
5959
}
60-
6160
# Assuming local build lambda's to use pre build ones, uncomment the lines below and download the
6261
# lambda zip files lambda_download
6362
# webhook_lambda_zip = "../lambdas-download/webhook.zip"

Diff for: examples/multi-runner/providers.tf

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
provider "aws" {
22
region = local.aws_region
3+
4+
default_tags {
5+
tags = {
6+
Example = local.environment
7+
}
8+
}
39
}

0 commit comments

Comments
 (0)