# Create EKS cluster using REST API

**URL:** <https://forums.suse.com/t/create-eks-cluster-using-rest-api/17969>\
**Category:** SUSE Rancher Prime\
**Created:** [July 15, 2020, 9:07pm UTC](https://forums.suse.com/t/create-eks-cluster-using-rest-api/17969 "2020-07-15T21:07:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beeks](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@beeks](https://forums.suse.com/u/beeks)\
**Post date:** [July 15, 2020, 9:07pm UTC](https://forums.suse.com/t/create-eks-cluster-using-rest-api/17969/1 "2020-07-15T21:07:38Z")

</div>

Hello,  
I have started down the path to provision an EKS cluster using the rest API however I am having a difficult time forming my request based on the “Generic” nature of the API.

According to this question, using the api is the way to go: [Create EKS Cluster by Rancher cli](http://forums.suse.com/t/create-eks-cluster-by-rancher-cli/13254/2)

I could also use terraform, as the provider looks pretty straight forward, but I was hoping to add some quick stuff to my gitlab pipeline to standup a cluster, run tests, and then tear-down afterwards so was hoping to get away with some curl commands - but perhaps I am just being naive 🙂

It seems like i should just be able to POST to the `v3/clusters` endpoint with necessary http params including setting cloud\_provider to AWS and my AWS tokens/secrets etc, only I can’t figure what those params are. I have been combing through the schema returned from `v3/clusters/schemas` and referencing this: [https://github.com/rancher/api-spec/blob/master/specification.md](https://github.com/rancher/api-spec/blob/master/specification.md) but so far it feels like a massive game of guess-and-check which makes me think I am missing something

Kind Regards,  
Ben
