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

Zip user_data #565

Merged
merged 1 commit into from
Nov 27, 2022
Merged

Zip user_data #565

merged 1 commit into from
Nov 27, 2022

Conversation

baolsen
Copy link
Contributor

@baolsen baolsen commented Nov 2, 2022

Description

Closes #561

Migrations required

NO

Verification

Done:
EC2 runner working correctly in my environment for several days now.
On the EC2 Launch Template, User data is visible as b64 + gzip encoded.
On the EC2 instance panel, User data displays as "No user data" for some reason.

@kayman-mk
Copy link
Collaborator

Sounds reasonable to me. Found the documentation here: https://cloudinit.readthedocs.io/en/latest/topics/format.html#gzip-compressed-content

GZip content is decoded automatically.

@npalm npalm self-requested a review November 3, 2022 23:25
@baolsen
Copy link
Contributor Author

baolsen commented Nov 4, 2022

I've tested this with a local copy of the source code and it works fine.

A downside is you can't inspect the user_data element in the AWS UI as it is Gzip compressed.
We do have cloudwatch logs to compensate for that.

@baolsen
Copy link
Contributor Author

baolsen commented Nov 17, 2022

@npalm ready for review and merge.

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.

@baolsen thanks!

@npalm npalm merged commit 64b8594 into cattle-ops:develop Nov 27, 2022
semantic-releaser bot pushed a commit that referenced this pull request Nov 27, 2022
## [5.5.0](5.4.1...5.5.0) (2022-11-27)

### Features

* Support volume type configuration ([#579](#579)) ([b7dd834](b7dd834))

### Bug Fixes

* Compress (zip) user_data to avoid max size ([#565](#565)) ([64b8594](64b8594))
* ensure a complete `config.toml` before starting the GitLab Agent ([#574](#574)) ([e32f3bc](e32f3bc))
* Use runners_pull_policies to set pull_policy instead of allowed_pull_policies ([#557](#557)) ([a67b87b](a67b87b))
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 5.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

npalm pushed a commit to npalm/test-repo that referenced this pull request Dec 8, 2022
## [5.5.0](cattle-ops/terraform-aws-gitlab-runner@5.4.1...5.5.0) (2022-11-27)

### Features

* Support volume type configuration ([#579](cattle-ops/terraform-aws-gitlab-runner#579)) ([b7dd834](cattle-ops/terraform-aws-gitlab-runner@b7dd834))

### Bug Fixes

* Compress (zip) user_data to avoid max size ([#565](cattle-ops/terraform-aws-gitlab-runner#565)) ([64b8594](cattle-ops/terraform-aws-gitlab-runner@64b8594))
* ensure a complete `config.toml` before starting the GitLab Agent ([#574](cattle-ops/terraform-aws-gitlab-runner#574)) ([e32f3bc](cattle-ops/terraform-aws-gitlab-runner@e32f3bc))
* Use runners_pull_policies to set pull_policy instead of allowed_pull_policies ([#557](cattle-ops/terraform-aws-gitlab-runner#557)) ([a67b87b](cattle-ops/terraform-aws-gitlab-runner@a67b87b))
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.

user_data is almost fully utilised
3 participants