mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-29 05:31:46 +02:00
Merge pull request #221 from max-rocket-internet/readme_update
Making README example more complete
This commit is contained in:
22
README.md
22
README.md
@@ -22,12 +22,22 @@ Read the [AWS docs on EKS to get connected to the k8s dashboard](https://docs.aw
|
|||||||
A full example leveraging other community modules is contained in the [examples/eks_test_fixture directory](https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/eks_test_fixture). Here's the gist of using it via the Terraform registry:
|
A full example leveraging other community modules is contained in the [examples/eks_test_fixture directory](https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/eks_test_fixture). Here's the gist of using it via the Terraform registry:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
module "eks" {
|
module "my-cluster" {
|
||||||
source = "terraform-aws-modules/eks/aws"
|
source = "terraform-aws-modules/eks/aws"
|
||||||
cluster_name = "test-eks-cluster"
|
cluster_name = "my-cluster"
|
||||||
subnets = ["subnet-abcde012", "subnet-bcde012a"]
|
subnets = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"]
|
||||||
tags = {Environment = "test"}
|
vpc_id = "vpc-1234556abcdef"
|
||||||
vpc_id = "vpc-abcde012"
|
|
||||||
|
worker_groups = [
|
||||||
|
{
|
||||||
|
instance_type = "m4.large"
|
||||||
|
asg_max_size = 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
tags = {
|
||||||
|
environment = "test"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user