andresaaap / cicd-create-delete-cluster-circleci

This is a pipeline to create an AWS EKS cluster for testing. The cluster will run for 30 minutes and will be deleted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pipeline to create and delete AWS EKS cluster using CircleCI

This is a simple pipeline using CircleCI. The idea is to be able to create a cluster in the cloud without having to install everything in a local machine, then use it for 9 minutes and then it automatically deletes it

Requirements

  1. Create the CircleCI account

  2. Create a GitHub repository

Install

  1. Download or clone this project

  2. Push this project to your GitHub repository

  3. In CircleCI setup the project.

Once on the Project page, find the project you are using and click Set Up Project.

set up project

According to the AWS EKS orb’s repo it is very important to meet these requirements before running the pipeline:

Add the AWS credentials as environment variables. Configure AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_DEFAULT_REGION as CircleCI project or context environment variables as shown in the links provided for project or context.

create environment variables

Add the policies to the IAM user suggested in the official eksctl website as Minimum IAM policies

Usage

Run the Pipeline by pushing a new commit to the GitHub repository or manually in the project’s GUI in CircleCI

Links & Resources

About

This is a pipeline to create an AWS EKS cluster for testing. The cluster will run for 30 minutes and will be deleted