This configuration creates a base set of cloud infrastructure resources:
- VPC
- EKS cluster
- Bastion node (used for access to any subsequently created worker nodes)
- Key pair (assigned to the Bastion and any subsequently created worker nodes)
This must be applied before applying other example configurations.
To run this example, execute:
terraform init
terraform apply
You may then run other example configurations which are layered above the Bootstrap configuration.
When you are finished, make sure you first destroy any other configurations layered above the Bootstrap configuration. Then to destroy this example, execute:
terraform destroy
Name | Version |
---|---|
terraform | >= 1.2.0 |
aws | ~> 5.2 |
random | ~> 3.6.0 |
tls | ~> 4.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
azs | List of exactly two availability zones in the currently configured AWS region. A private subnet and a public subnet is created in each of these availability zones. Each cluster node is launched in one of the private subnets. If null, then the first two availability zones in the currently configured AWS region is used. |
list(string) |
null |
no |
bastion_remote_access_cidr_blocks | Allowed CIDR blocks for external SSH access to the Bastion instance. This must be a list of strings. If null, then access to the Bastion instance is prevented. |
list(string) |
n/a | yes |
cluster_version | Cluster version | string |
"1.32" |
no |
name_prefix | Used as a prefix for the 'Name' tag for each created resource. If null, then a random name 'xrd-terraform-[0-9a-z]{8}' is used. |
string |
null |
no |
Name | Description |
---|---|
bootstrap | Bootstrap module outputs |