Skip to content

russest3/aws-eks-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build out a Kubernetes Cluster in an AWS VPC with Cloud Development Kit!

To Update kubeconfig:

aws eks update-kubeconfig --name custom-eks-cluster

Architecture

Requirements

  • AWS CDK installed
  • AWS CLI installed
  • Run aws configure to configure access keys

AWS CDK Procedure

Create a virtualenv on MacOS and Linux:

$ python3 -m venv .venv

After the init process completes and the virtualenv is created, you can use the following step to activate your virtualenv.

$ source .venv/bin/activate

Once the virtualenv is activated, you can install the required dependencies.

$ pip install -r requirements.txt

At this point you can now synthesize the CloudFormation template for this code.

$ cdk synth

Deploy the IaaC code with:

$ cdk deploy

Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Enjoy!

About

AWS CDK Buildout of an EKS Cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages