Skip to content

nickkadams/terraspace-aws-eks-cluster

Repository files navigation

terraspace-aws-eks-cluster

This is a Terraspace project. It contains code to provision Cloud infrastructure built with Terraform and the Terraspace Framework.

Package Installation

Terraspace install as a standalone package.

Boot Hooks

Modify the Terraspace TS_APP value in config/boot.rb for your environment.

config/boot.rb # where TS_APP value represents you (example: your IAM username).

Deploy

To deploy all the infrastructure stacks:

terraspace all up

To deploy individual stacks:

terraspace up vpc # where stack vpc is located under app/stacks/vpc

To deploy individual stacks in another region with environment prod and app myuser:

AWS_REGION=us-gov-west-1 TS_ENV=prod TS_APP=my-app terraspace up vpc

Terrafile

To use more modules, add them to the Terrafile.

Test config

Test your configuration:

kubectl get svc

Test API server

Test access to the Amazon EKS API server:

aws eks describe-cluster \
    --name my-app-dev --region us-gov-east-1 \
    --query cluster.resourcesVpcConfig