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

Bug: Ec2 runner #182

Closed
pharindoko opened this issue Dec 9, 2022 · 1 comment · Fixed by #183
Closed

Bug: Ec2 runner #182

pharindoko opened this issue Dec 9, 2022 · 1 comment · Fixed by #183

Comments

@pharindoko
Copy link
Contributor

When I try to use the ec2 runner I do get following error message in the step-function.

"error": {
    "Error": "Ec2.Ec2Exception",
    "Cause": "The provided credentials do not have permission to create the service-linked role for EC2 Spot Instances. (Service: Ec2, Status Code: 403, Request ID: 0ed21094-6fec-467b-bc8f-777207682f73)"
  },
@pharindoko
Copy link
Contributor Author

Added this to my cdk code ...

    new iam.CfnServiceLinkedRole(this, 'spot-instance-service-role', {
      awsServiceName: 'spot.amazonaws.com',
    });

another solution is to use the cli

aws iam create-service-linked-role --aws-service-name spot.amazonaws.com

I guess that would be worth to be documented in the readme...

kichik added a commit that referenced this issue Dec 9, 2022
…rvice-linked role for EC2 Spot Instances

Fixes #182
@mergify mergify bot closed this as completed in #183 Dec 9, 2022
mergify bot pushed a commit that referenced this issue Dec 9, 2022
…rvice-linked role for EC2 Spot Instances (#183)

Fixes #182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant