Skip to content
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

Remove runner agents if provider assumed a role #401

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

kayman-mk
Copy link
Collaborator

Description

If the AWS provider assumes a role, it is not possible to use the AWS CLI to interact with the cloud resources as the CLI does not assume the role automatically. The removal of the runner agents from Gitlab fails.

This PR moves the whole script to remove the runner agent into the Terraform code and does not use the AWS CLI.

Closes #371

Migrations required

No

Verification

Still pending.

Documentation

We use pre-commit to update the Terraform inputs and outputs in the documentation via terraform-docs. Ensure you have installed those components.

Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, still in draft?

@kayman-mk kayman-mk marked this pull request as ready for review November 12, 2021 14:31
@npalm npalm merged commit 9767603 into cattle-ops:develop Nov 12, 2021
semantic-releaser bot pushed a commit that referenced this pull request Dec 9, 2021
## [4.36.0](4.35.0...4.36.0) (2021-12-09)

### Features

* Add /certs/client and docker.sock to volumes for docker in docker ([#396](#396)) ([3f79054](3f79054))
* Add variable for Docker registry mirror ([#400](#400)) ([e36c971](e36c971))
* Make check interval configurable for the runner ([#402](#402)) ([ed9989c](ed9989c))

### Bug Fixes

* Remove runner agents if provider assumed a role ([#401](#401)) ([9767603](9767603))
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 4.36.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to remove runner when assuming role
2 participants