Comments (5)
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:
resource "aws_iam_service_linked_role" "spot" {
aws_service_name = "spot.amazonaws.com"
}
``
Another quick fix would be first to create manaully via the AWS console a spot instance and remove it. You will see that AWS will create the required role for you.
from terraform-aws-github-runner.
Hey @compiaffe ,
Assume that you are using the v0.2.0 tag?
And, curious if you always see this error now?
-
i.e.: can you terraform destroy, delete ./.terraform dir, and then terraform init/plan/apply again a few times and validate that you always get this error?
-
I don't see the error you noted--although the effect is the same for both of us, as we are not seeing any EC2 spot instances deployed (ref: #100 (comment) ). And I definitely have terraform destroyed/applied probably ten or so times in the past couple of days.
-
For the record, I'm using terraform 0.12.28 on macos, curious what TF version you are using?
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:
LeanerCloud/AutoSpotting#187
This issue notes how they apparently took their fix and made it less permissive and were able to get it resolved:
LeanerCloud/AutoSpotting#416 (comment)
from terraform-aws-github-runner.
@npalm Thanks for the info, will try it out. Due to upcoming holidays might not report back before October.
from terraform-aws-github-runner.
I was having the same issue and adding
resource "aws_iam_service_linked_role" "spot" {
aws_service_name = "spot.amazonaws.com"
}
Did indeed fix it. Thanks!
from terraform-aws-github-runner.
Docs are updated via #229
from terraform-aws-github-runner.
Related Issues (20)
- Gracefully terminate old runners when AMI changes HOT 3
- Lambda ami housekeeper and the ssm parameter store HOT 4
- Default example fails HOT 2
- When to increase size of the pool HOT 3
- Using upstream module from terraform registry is not user friendly HOT 3
- Question: For different AWS profiles and vpc's do I need separate Github apps? HOT 4
- Pool is creating multiple instances while the first is still registering HOT 2
- Runner Lables no longer honored after 5.2.1->5.8.0 upgrade HOT 9
- Error: ssmHousekeeper handler not found HOT 2
- Scale down lambda terminates active runners HOT 2
- Permission Issue When Running multi-runner solution: Access denied for ssm:GetParameter action HOT 3
- Runner i-xxxx is not idle in GitHub and NOT counted as part of the pool HOT 3
- SSM parameters can exceed 4K limit breaking terraform apply HOT 4
- Add support for multiple type of platforms HOT 1
- Docker containers no longer inherit credentials from EC2 instance HOT 1
- Add the ability to use custom labels only HOT 2
- AMI Parameter cannot be a cross account parameter HOT 1
- speedup instance creation for bursty workflows HOT 2
- CodeStar Connections Being replaced by CodeConnections in April 2025 HOT 1
- optional FIFO queue on workflow job events queue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-github-runner.