-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support AWS provider 4 #460
Conversation
@meMuszr At the moment I got a change every time I apply:
|
solved |
Hey - just a heads up - this doesn't work on 4.6 and 4.0. Pinned to 4.2 and it ran fine. Didn't really investigate further. |
Just tested with 4.7 and 4.9 all works fine |
Any chance to push this one? Just tested the Checked multiple |
Sorry for all the delay, first syncing most PR's. Next merge this breaking change. |
PR is ready. Will update later this week the README and a notice of the upgrade and relase a new major version |
@kayman-mk this PR is finally ready. Will run tomorrow or Saturday one more last check. Next will run a reease. |
This introduces an Auto Scaling Group instance termination lifecycle hook using Lambda and related resources. The Lambda function is a Python script that is triggered when the persistent runner instance in the ASG is terminated. The function receives the instance ID of the "parent" runner and queries for spawned instances that it launched to terminate. Additionally, it will check for other "orphaned" instances that have a `gitlab-runner-parent-id` tag that doesn't match an existing instance. This resolves the issue where spawned instances could be orphaned when their parent runner is terminated. This feature is disabled by default. The user data script is updated to provide the 'parent' instance ID as a tag named 'gitlab-runner-parent-id' on spawned instances. A new sub-module is provided called "terminate-workers". It is optional to use this feature, and the input variable `asg_terminate_lifecycle_hook_create` can be toggled `true` or `false` for this behavior.
Co-authored-by: Steve Wilson <[email protected]>
* fix: add override for IAM objects name to all IAM resources * fix: input variable for IAM object name override in cache module * chore: update comment * chore: revert unnecessary name changes * chore: fix typo in description of overrides variable * feat: add example for multi-region deployment * docs: update readme * docs: fix typo * chore: apply review changes * feat: remove protected runner setting from configuration
* remove the null resource * amend the docs to not forget to remove the runner manually
* remove the null resource * amend the docs to not forget to remove the runner manually
* remove the null resource * amend the docs to not forget to remove the runner manually
- set default the usage of metadata tokens to required - refactor usages close: #445 Co-authored-by: Matthias Kay <[email protected]>
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). 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.
## [5.0.0](4.42.0...5.0.0) (2022-05-20) ### ⚠ BREAKING CHANGES * 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). * 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]> ### Features * Terraform AWS Provider Version 4 Upgrade ([#460](#460)) ([bced356](bced356)), closes [#490](#490)
🎉 This PR is included in version 5.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
See also #44