Skip to content

fix: use IMDSv2 url when setting PARENT_INSTANCE_ID #497

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

Merged
merged 1 commit into from
May 26, 2022

Conversation

snoord
Copy link
Contributor

@snoord snoord commented May 25, 2022

Description

This PR updates the URL used for the PARENT_INSTANCE_ID variable so that it now points to the AWS IMDSv2 endpoint.

Using the old URL caused an empty gitlab-runner-parent-id tag to be added to all runner instances created by agents, which broke the Lambda function for terminating stray runner instances.

Closes #496

Migrations required

NO

Verification

Successfully tested in private AWS account.

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

@npalm npalm merged commit d8379e8 into cattle-ops:develop May 26, 2022
@snoord snoord deleted the fix-empty-gitlab-runner-parent-id branch May 26, 2022 00:28
semantic-releaser bot pushed a commit that referenced this pull request May 26, 2022
### [5.0.2](5.0.1...5.0.2) (2022-05-26)

### Bug Fixes

* use IMDSv2 url when setting PARENT_INSTANCE_ID ([#497](#497)) ([536535f](536535f))
@AlexEndris
Copy link

@snoord Thanks!

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

Successfully merging this pull request may close these issues.

config.toml has empty "gitlab-runner-parent-id"
3 participants