You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Terraform AWS Provider Version 4 Upgrade (cattle-ops#460)
* feat: Terraform AWS Provider Version 4 Upgrade
BREAKING CHANGE: The module is upgraded to Terraform AWS provider 4.x. All new development will only support the new AWS Terraform provider. We keep a branch `terraform-aws-provider-3` to witch we welcome backports to AWS Terraform 3.x provider. Besides reviewing PR's we will do not any active checking on maintance on this branch. We strongly advise to update your deployment to the new provider version. For more details about upgrading see the [upgrade guide](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade).
* feat: Add metadata options for docker mahcine (cattle-ops#490)
BREAKING CHANGE: By default, AWS metadata service ((IMDSv2)[https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html]) is enabled and required for both the agent instance and the docker machine instance. For docker machine this require the GitLab managed docker machines distribution is used. Which the module usages by default.
Co-authored-by: Matthias Kay <[email protected]>
Co-authored-by: Mustafa Abdul-Kader <[email protected]>
Co-authored-by: Steve Wilson <[email protected]>
In this scenario the multiple runner agents can be created with different configuration by instantiating the module multiple times. Runners will scale automatically based on configuration. The S3 cache can be shared cross runners by managing the cache outside the module.
- Usages of multiple runner instances sharing a common cache.
10
+
- Overrides for tag naming.
11
+
- Registration via GitLab token.
12
+
- Auto scaling using `docker+machine` executor.
13
+
- Register runner as [protected](https://docs.gitlab.com/ee/ci/runners/configure_runners.html#prevent-runners-from-revealing-sensitive-information).
14
+
15
+
16
+
## Prerequisite
17
+
18
+
The Terraform version is managed using [tfenv](https://github.com/Zordrak/tfenv). If you are not using `tfenv` please check `.terraform-version` for the tested version.
| <aname="input_arn_format"></a> [arn\_format](#input\_arn\_format)| ARN format to be used. May be changed to support deployment in GovCloud/China regions. |`string`|`"arn:aws"`| no |
60
-
| <aname="input_cache_bucket_name_include_account_id"></a> [cache\_bucket\_name\_include\_account\_id](#input\_cache\_bucket\_name\_include\_account\_id)| Boolean to add current account ID to cache bucket name. |`bool`|`true`| no |
61
-
| <aname="input_cache_bucket_prefix"></a> [cache\_bucket\_prefix](#input\_cache\_bucket\_prefix)| Prefix for s3 cache bucket name. |`string`|`""`| no |
62
-
| <aname="input_cache_bucket_set_random_suffix"></a> [cache\_bucket\_set\_random\_suffix](#input\_cache\_bucket\_set\_random\_suffix)| Random string suffix for s3 cache bucket |`bool`|`false`| no |
63
-
| <aname="input_cache_bucket_versioning"></a> [cache\_bucket\_versioning](#input\_cache\_bucket\_versioning)| Boolean used to enable versioning on the cache bucket, false by default. |`string`|`"false"`| no |
64
-
| <aname="input_cache_expiration_days"></a> [cache\_expiration\_days](#input\_cache\_expiration\_days)| Number of days before cache objects expires. |`number`|`1`| no |
65
-
| <aname="input_cache_lifecycle_clear"></a> [cache\_lifecycle\_clear](#input\_cache\_lifecycle\_clear)| Enable the rule to cleanup the cache for expired objects. |`bool`|`true`| no |
66
-
| <aname="input_cache_lifecycle_prefix"></a> [cache\_lifecycle\_prefix](#input\_cache\_lifecycle\_prefix)| Object key prefix identifying one or more objects to which the clean up rule applies. |`string`|`"runner/"`| no |
67
-
| <aname="input_create_cache_bucket"></a> [create\_cache\_bucket](#input\_create\_cache\_bucket)| This module is by default included in the runner module. To disable the creation of the bucket this parameter can be disabled. |`bool`|`true`| no |
68
-
| <aname="input_environment"></a> [environment](#input\_environment)| A name that identifies the environment, used as prefix and for tagging. |`string`| n/a | yes |
69
-
| <aname="input_name_iam_objects"></a> [name\_iam\_objects](#input\_name\_iam\_objects)| Set the name prefix of all AWS IAM resources created by this module |`string`|`""`| no |
70
-
| <aname="input_tags"></a> [tags](#input\_tags)| Map of tags that will be added to created resources. By default resources will be tagged with name and environment. |`map(string)`|`{}`| no |
71
-
72
-
## Outputs
73
-
74
-
| Name | Description |
75
-
|------|-------------|
76
-
| <aname="output_arn"></a> [arn](#output\_arn)| The ARN of the created bucket. |
77
-
| <aname="output_bucket"></a> [bucket](#output\_bucket)| Name of the created bucket. |
78
-
| <aname="output_policy_arn"></a> [policy\_arn](#output\_policy\_arn)| Policy for users of the cache (bucket). |
| <aname="input_arn_format"></a> [arn\_format](#input\_arn\_format)| ARN format to be used. May be changed to support deployment in GovCloud/China regions. |`string`|`"arn:aws"`| no |
114
-
| <aname="input_cache_bucket_name_include_account_id"></a> [cache\_bucket\_name\_include\_account\_id](#input\_cache\_bucket\_name\_include\_account\_id)| Boolean to add current account ID to cache bucket name. |`bool`|`true`| no |
115
-
| <aname="input_cache_bucket_prefix"></a> [cache\_bucket\_prefix](#input\_cache\_bucket\_prefix)| Prefix for s3 cache bucket name. |`string`|`""`| no |
116
-
| <aname="input_cache_bucket_set_random_suffix"></a> [cache\_bucket\_set\_random\_suffix](#input\_cache\_bucket\_set\_random\_suffix)| Random string suffix for s3 cache bucket |`bool`|`false`| no |
117
-
| <aname="input_cache_bucket_versioning"></a> [cache\_bucket\_versioning](#input\_cache\_bucket\_versioning)| Boolean used to enable versioning on the cache bucket, false by default. |`string`|`"false"`| no |
118
-
| <aname="input_cache_expiration_days"></a> [cache\_expiration\_days](#input\_cache\_expiration\_days)| Number of days before cache objects expires. |`number`|`1`| no |
119
-
| <aname="input_cache_lifecycle_clear"></a> [cache\_lifecycle\_clear](#input\_cache\_lifecycle\_clear)| Enable the rule to cleanup the cache for expired objects. |`bool`|`true`| no |
120
-
| <aname="input_cache_lifecycle_prefix"></a> [cache\_lifecycle\_prefix](#input\_cache\_lifecycle\_prefix)| Object key prefix identifying one or more objects to which the clean up rule applies. |`string`|`"runner/"`| no |
121
-
| <aname="input_create_cache_bucket"></a> [create\_cache\_bucket](#input\_create\_cache\_bucket)| This module is by default included in the runner module. To disable the creation of the bucket this parameter can be disabled. |`bool`|`true`| no |
122
-
| <aname="input_environment"></a> [environment](#input\_environment)| A name that identifies the environment, used as prefix and for tagging. |`string`| n/a | yes |
123
-
| <aname="input_name_iam_objects"></a> [name\_iam\_objects](#input\_name\_iam\_objects)| Set the name prefix of all AWS IAM resources created by this module |`string`|`""`| no |
124
-
| <aname="input_tags"></a> [tags](#input\_tags)| Map of tags that will be added to created resources. By default resources will be tagged with name and environment. |`map(string)`|`{}`| no |
125
-
126
-
## Outputs
127
-
128
-
| Name | Description |
129
-
|------|-------------|
130
-
| <aname="output_arn"></a> [arn](#output\_arn)| The ARN of the created bucket. |
131
-
| <aname="output_bucket"></a> [bucket](#output\_bucket)| Name of the created bucket. |
132
-
| <aname="output_policy_arn"></a> [policy\_arn](#output\_policy\_arn)| Policy for users of the cache (bucket). |
0 commit comments