-
Notifications
You must be signed in to change notification settings - Fork 637
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
runners-scale-up fails with 'AuthFailure.ServiceLinkedRoleCreationNotPermitted' #104
Comments
Hey @compiaffe , Assume that you are using the v0.2.0 tag?
I ended up importing the project as I needed to make changes to some submodules code with things like the hard coded tags, etc. in case its helpful, here is how I have my internal module structure, based on the default/example from this project tree
.
├── README.md
├── lambdas-download
│ ├── main.tf
│ ├── runner-binaries-syncer.zip
│ ├── runners.zip
│ ├── terraform.tfstate
│ └── webhook.zip
├── main.tf
├── outputs.tf
├── providers.tf
├── terraform-aws-github-runner.tfvars
├── terraform.secret.auto.tfvars
├── terraform.tf
└── variables.tf
1 directory, 13 files
cmcc@cmcc:default $ cat ../../.terraform-version
0.12.28 I found this curious seeing that this has apparently been an intermittent issue for folks in the past with other projects: This issue notes how they apparently took their fix and made it less permissive and were able to get it resolved: |
I am quite sure it is an IAM issue. In this repo you find a bit more infor how to create the required service linked roles. When time I will add them also to this repo. See, you only will need the one for spot https://github.com/npalm/terraform-aws-gitlab-runner#service-linked-roles Via terraform you create the services link role as follow:
|
@npalm Thanks for the info, will try it out. Due to upcoming holidays might not report back before October. |
I was having the same issue and adding
Did indeed fix it. Thanks! |
Docs are updated via #229 |
Summary
When following the readme, using the example configuration and adjusting the Github app permissions as per https://github.com/philips-labs/terraform-aws-github-runner/issues/100#issuecomment-665923045 the
scale-up
lambda fails to create the EC2 instance due toServiceLinkedRoleCreationNotPermitted
Steps to reproduce
terraform.tfvars
file with Github App credentialsterraform init && terraform apply
What is the current bug behavior?
Github app sends webhook, webhook lambda forwards it, scaleup-lambda throws error:
What is the expected correct behavior?
Scale up lambda should create EC2 instance
Possible fixes
I'm sure this is a IAM permissions issue. I am rather new to both AWS and terraform and am not sure in which of them this needs to be solved and how to go about it.
Would be great to get some pointers.
The text was updated successfully, but these errors were encountered: