Skip to content

Issue trying to use ubuntu based runners with 0.27.2 #1560

Closed

Description

@nparfait

I was previously using version 0.18.1 of this module. I decided to upgrade to the latest 0.27.2. However came across an issue.

I'm trying to use ubuntu runner ( i have copied user-data.sh from examples/ubuntu/templates/ )
Using the defaults the runner was registering with GIthub.

I then tried using the flag
runner_as_root = true

this then registered the runner but caused me some permissions issues between actions/checkout and my steps running in a container.

Finally i tried updating SSM parameter xxx/runner/run-as
to: runners

and this was able to run successfully.

Looking here
https://github.com/philips-labs/terraform-aws-github-runner/blob/v0.27.2/modules/runners/runner-config.tf#L4

the run as is either root or ec2-user.
The ubuntu image doesn't have an ec2-user so not sure if this is a problem or not.

Can you please advise?

Activity

  1. npalm commented on Dec 28, 2021

    @npalm
    Member

    Thanks for creating the issue, the ubuntu example is indeed broken. I have just created a fix in PR #1572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions