# Provision Amazon EKS

## Overview

This is an illustrative example of a Jenkins based pipeline programmatically interacting with the controller to automate the provisioning of Amazon EKS Clusters based on a declarative cluster specification.

---

## Assumptions

- You have configured credentials in Jenkins so that the pipeline can securely access the Controller.

---

## Example Pipeline

### Step 1: Create Jenkins Item

Create a new Jenkins "Item", provide a name and select "pipeline" for type. Illustrative screenshot below.

Copy the [example Jenkins pipeline](https://github.com/RafaySystems/rafay-cicd-helpers/tree/master/eks/Jenkins) from the public Git repo and customize it with your details.

---

### Step 2: Cluster Spec Parameter

Select the "This project is parameterized" option and enter "CLUSTER_METADATA". This will carry the Cluster Specs.

---

### Step 3: Pipeline

---

### Step 4: Build With Parameters

- To execute the pipeline, click on "build with parameters"
- Provide the cluster spec in the parameters
- Click on build

---
