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

Instance role when added not working #132

Open
maheshevizio opened this issue Jan 27, 2023 · 2 comments
Open

Instance role when added not working #132

maheshevizio opened this issue Jan 27, 2023 · 2 comments

Comments

@maheshevizio
Copy link

I have added the additional permissions in the role as documented but it keeps throwing this error

Run machulav/ec2-github-runner@v2
(https://github.com/ad-tech/pocs/actions/runs/4020315401/jobs/6908102164#step:4:23)
GitHub Registration Token is received
23
Error: AWS EC2 instance starting error
24
Error: InvalidParameterValue: Value (GithubActionRunner) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
25
Error: Value (GithubActionRunner) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name

@maheshevizio
Copy link
Author

maheshevizio commented Jan 27, 2023

The runner creation works without instance-role

@rernst76
Copy link

It seems like it is actually expecting an InstanceProfile, not a role. You can use the CLI to create an InstanceProfile for a given role. Then in your start job, use the instance profile name (not the ARN) and it should work!

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

No branches or pull requests

2 participants