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

Commit bb68562

Browse files
fix: remove unused environment variable (#3616)
Variable should already be removed in PR #3567 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 2d0f039 commit bb68562

File tree

10 files changed

+0
-60
lines changed

10 files changed

+0
-60
lines changed

Diff for: modules/runner-binaries-syncer/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ No modules.
9191
| <a name="input_aws_partition"></a> [aws\_partition](#input\_aws\_partition) | (optional) partition for the base arn if not 'aws' | `string` | `"aws"` | no |
9292
| <a name="input_distribution_bucket_name"></a> [distribution\_bucket\_name](#input\_distribution\_bucket\_name) | Bucket for storing the action runner distribution. | `string` | n/a | yes |
9393
| <a name="input_enable_event_rule_binaries_syncer"></a> [enable\_event\_rule\_binaries\_syncer](#input\_enable\_event\_rule\_binaries\_syncer) | Option to disable EventBridge Lambda trigger for the binary syncer, useful to stop automatic updates of binary distribution | `bool` | `true` | no |
94-
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
9594
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"arm64"` | no |
9695
| <a name="input_lambda_principals"></a> [lambda\_principals](#input\_lambda\_principals) | (Optional) add extra principals to the role created for execution of the lambda, e.g. for local testing. | <pre>list(object({<br> type = string<br> identifiers = list(string)<br> }))</pre> | `[]` | no |
9796
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs18.x"` | no |

Diff for: modules/runner-binaries-syncer/variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ variable "tags" {
44
default = {}
55
}
66

7-
variable "environment" {
8-
description = "A name that identifies the environment, used as prefix and for tagging."
9-
type = string
10-
default = null
11-
12-
validation {
13-
condition = var.environment == null
14-
error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
15-
}
16-
}
17-
187
variable "prefix" {
198
description = "The prefix used for naming resources"
209
type = string

Diff for: modules/runners/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ yarn run dist
158158
| <a name="input_enable_ssm_on_runners"></a> [enable\_ssm\_on\_runners](#input\_enable\_ssm\_on\_runners) | Enable to allow access to the runner instances for debugging purposes via SSM. Note that this adds additional permissions to the runner instances. | `bool` | n/a | yes |
159159
| <a name="input_enable_user_data_debug_logging"></a> [enable\_user\_data\_debug\_logging](#input\_enable\_user\_data\_debug\_logging) | Option to enable debug logging for user-data, this logs all secrets as well. | `bool` | `false` | no |
160160
| <a name="input_enable_userdata"></a> [enable\_userdata](#input\_enable\_userdata) | Should the userdata script be enabled for the runner. Set this to false if you are using your own prebuilt AMI | `bool` | `true` | no |
161-
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
162161
| <a name="input_ghes_ssl_verify"></a> [ghes\_ssl\_verify](#input\_ghes\_ssl\_verify) | GitHub Enterprise SSL verification. Set to 'false' when custom certificate (chains) is used for GitHub Enterprise Server (insecure). | `bool` | `true` | no |
163162
| <a name="input_ghes_url"></a> [ghes\_url](#input\_ghes\_url) | GitHub Enterprise Server URL. DO NOT SET IF USING PUBLIC GITHUB | `string` | `null` | no |
164163
| <a name="input_github_app_parameters"></a> [github\_app\_parameters](#input\_github\_app\_parameters) | Parameter Store for GitHub App Parameters. | <pre>object({<br> key_base64 = map(string)<br> id = map(string)<br> })</pre> | n/a | yes |

Diff for: modules/runners/variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ variable "tags" {
2929
default = {}
3030
}
3131

32-
variable "environment" {
33-
description = "A name that identifies the environment, used as prefix and for tagging."
34-
type = string
35-
default = null
36-
37-
validation {
38-
condition = var.environment == null
39-
error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
40-
}
41-
}
42-
4332
variable "prefix" {
4433
description = "The prefix used for naming resources"
4534
type = string

Diff for: modules/setup-iam-permissions/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ No modules.
7171
|------|-------------|------|---------|:--------:|
7272
| <a name="input_account_id"></a> [account\_id](#input\_account\_id) | The module allows to switch to the created role from the provided account id. | `string` | n/a | yes |
7373
| <a name="input_aws_partition"></a> [aws\_partition](#input\_aws\_partition) | (optional) partition in the arn namespace if not aws | `string` | `"aws"` | no |
74-
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
7574
| <a name="input_namespaces"></a> [namespaces](#input\_namespaces) | The role will be only allowed to create roles, policies and instance profiles in the given namespace / path. All policies in the boundaries namespace cannot be modified by this role. | <pre>object({<br> boundary_namespace = string<br> role_namespace = string<br> policy_namespace = string<br> instance_profile_namespace = string<br> })</pre> | n/a | yes |
7675
| <a name="input_prefix"></a> [prefix](#input\_prefix) | The prefix used for naming resources | `string` | `"github-actions"` | no |
7776

Diff for: modules/setup-iam-permissions/variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
variable "environment" {
2-
description = "A name that identifies the environment, used as prefix and for tagging."
3-
type = string
4-
default = null
5-
6-
validation {
7-
condition = var.environment == null
8-
error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
9-
}
10-
}
11-
121
variable "prefix" {
132
description = "The prefix used for naming resources"
143
type = string

Diff for: modules/ssm/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ No modules.
3232

3333
| Name | Description | Type | Default | Required |
3434
|------|-------------|------|---------|:--------:|
35-
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
3635
| <a name="input_github_app"></a> [github\_app](#input\_github\_app) | GitHub app parameters, see your github app. Ensure the key is the base64-encoded `.pem` file (the output of `base64 app.private-key.pem`, not the content of `private-key.pem`). | <pre>object({<br> key_base64 = string<br> id = string<br> webhook_secret = string<br> })</pre> | n/a | yes |
3736
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | Optional CMK Key ARN to be used for Parameter Store. | `string` | `null` | no |
3837
| <a name="input_path_prefix"></a> [path\_prefix](#input\_path\_prefix) | The path prefix used for naming resources | `string` | n/a | yes |

Diff for: modules/ssm/variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ variable "github_app" {
77
})
88
}
99

10-
variable "environment" {
11-
description = "A name that identifies the environment, used as prefix and for tagging."
12-
type = string
13-
default = null
14-
15-
validation {
16-
condition = var.environment == null
17-
error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
18-
}
19-
}
20-
2110
variable "path_prefix" {
2211
description = "The path prefix used for naming resources"
2312
type = string

Diff for: modules/webhook/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ No modules.
7979
| Name | Description | Type | Default | Required |
8080
|------|-------------|------|---------|:--------:|
8181
| <a name="input_aws_partition"></a> [aws\_partition](#input\_aws\_partition) | (optional) partition for the base arn if not 'aws' | `string` | `"aws"` | no |
82-
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
8382
| <a name="input_github_app_parameters"></a> [github\_app\_parameters](#input\_github\_app\_parameters) | Parameter Store for GitHub App Parameters. | <pre>object({<br> webhook_secret = map(string)<br> })</pre> | n/a | yes |
8483
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | Optional CMK Key ARN to be used for Parameter Store. | `string` | `null` | no |
8584
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"arm64"` | no |

Diff for: modules/webhook/variables.tf

-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ variable "lambda_security_group_ids" {
1010
default = []
1111
}
1212

13-
variable "environment" {
14-
description = "A name that identifies the environment, used as prefix and for tagging."
15-
type = string
16-
default = null
17-
18-
validation {
19-
condition = var.environment == null
20-
error_message = "The \"environment\" variable is no longer used. To migrate, set the \"prefix\" variable to the original value of \"environment\" and optionally, add \"Environment\" to the \"tags\" variable map with the same value."
21-
}
22-
}
23-
2413
variable "prefix" {
2514
description = "The prefix used for naming resources"
2615
type = string

0 commit comments

Comments
 (0)