mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 16:23:58 +01:00
AWS EKS cluster running Bottlerocket AMI
Configuration in this directory creates EKS cluster with workers group running AWS Bottlerocket OS
This is a minimalistic example which shows what knobs to turn to make Bottlerocket work.
See the official documentation for more details.
Usage
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.
Requirements
| Name | Version |
|---|---|
| terraform | >= 0.13.1 |
| aws | >= 3.56 |
| kubernetes | >= 1.11.1 |
| local | >= 1.4 |
| random | >= 2.1 |
| tls | >= 2.0 |
Providers
| Name | Version |
|---|---|
| aws | >= 3.56 |
| random | >= 2.1 |
| tls | >= 2.0 |
Modules
| Name | Source | Version |
|---|---|---|
| eks | ../.. | n/a |
| vpc | terraform-aws-modules/vpc/aws | ~> 3.0 |
Resources
| Name | Type |
|---|---|
| aws_iam_role_policy_attachment.ssm | resource |
| aws_key_pair.nodes | resource |
| random_string.suffix | resource |
| tls_private_key.nodes | resource |
| aws_ami.bottlerocket_ami | data source |
| aws_availability_zones.available | data source |
| aws_eks_cluster.cluster | data source |
| aws_eks_cluster_auth.cluster | data source |
| aws_region.current | data source |
Inputs
No inputs.
Outputs
| Name | Description |
|---|---|
| cluster_endpoint | Endpoint for EKS control plane. |
| cluster_security_group_id | Security group ids attached to the cluster control plane. |
| config_map_aws_auth | A kubernetes configuration to authenticate to this EKS cluster. |
| kubectl_config | kubectl config as generated by the module. |
| node_groups | Outputs from node groups |