mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
Gitpod AWS Terraform
- Create S3 Bucket for remote state
- Configure a Route 53 Hosted zone to your domain
- Configure
backend.hclto match the S3 Bucket - Fill out
main.auto.tfvarsto match what you want (and put in the name of the hosted zone where required) - (Optional) configure any additional helm values in the values.yml file
- Run
make init - Run
make apply - Confirm the plan
- Go get coffee (this could take a while)
- Come back, if its done then go to the domain you specified in the tfvars file and play with your new configuration
FAQ
Q: I get "OptInRequired: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe."
A: Your account seems to be missing a credit card. Go to https://portal.aws.amazon.com/billing/signup?type=resubscribe#/resubscribed and finish the subscription process.
Q: I get "Status Reason: The requested configuration is currently not supported"
A: Switch to another AWS region often helps. Some machines are not available in all regions.
Q: I get "Error: Service "proxy" is invalid: spec.ports[0].nodePort: Invalid value: 31080: provided port is already allocated" on re-applying the terraform script
A: Wait 2-5mins (cmp. Kubernetes issues 32987 and 73140)
Q: One of my pods throws errors reading "networkPlugin cni failed to set up pod "" network: add cmd: failed to assign an IP address to container"
A: Seems like the pod-per-node limit is reached: https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt (?)