https://github.com/timtech4u/terraform-play-aws
Terraform module to setup EKS cluster, IAM policy/user with keybase pgp, Enable remote locking & backend state,
https://github.com/timtech4u/terraform-play-aws
Last synced: 4 months ago
JSON representation
Terraform module to setup EKS cluster, IAM policy/user with keybase pgp, Enable remote locking & backend state,
- Host: GitHub
- URL: https://github.com/timtech4u/terraform-play-aws
- Owner: Timtech4u
- Created: 2020-05-05T08:34:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-05T08:37:57.000Z (about 6 years ago)
- Last Synced: 2025-02-28T02:03:35.654Z (over 1 year ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Module to provision EKS Cluster
## Pre-requisites
Install the following:
- [AWS CLI](https://aws.amazon.com/cli/)
- [Terraform](https://www.terraform.io/downloads.html)
After installing the AWS CLI. Configure it to use your credentials.
This enables Terraform access to the configuration file and performs operations on your behalf with these security credentials.
```shell
$ aws configure
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [None]:
```
## Setup Keybase Key
- [Setup a Keybase Account](https://keybase.io)
- [Install Keybase CLI](https://keybase.io/docs/the_app/install_linux)
- Login to Keybase CLI using: `keybase login`
- Setup a Keybase key `keybase pgp gen`
Ensure to set the following within Terraform
```
pgp_key = "keybase:"
```
Where __ is your Keybase account username
To get the decrypted password, you can run the following `terraform apply`
```shell
$ terraform output iam_password | base64 --decode | keybase pgp decrypt"
```
After you've done this, initalize your Terraform workspace with the following command:
```shell
$ terraform init
```
Execute the following to see what the infrastructure looks like:
```shell
$ terraform plan
```
Then, provision your EKS cluster by running `terraform apply`. This will take approximately 10 minutes.
```shell
$ terraform apply
```