eks_cluster
Manage Elastic Kubernetes Service (EKS) Clusters
Collection: community.aws
Full Name: community.aws.eks_cluster
Synopsis
Manage Elastic Kubernetes Service (EKS) Clusters
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| name | str | yes | ||
| profile | str | |||
| region | str | |||
| role_arn | str | |||
| secret_key | str | |||
| security_groups | list | |||
| session_token | str | |||
| state | str | present | ||
| subnets | list | |||
| tags | dict | |||
| validate_certs | bool | true | ||
| version | str | |||
| wait | bool | false | ||
| wait_timeout | int | 1200 |
Example
yaml
- name: Create an EKS cluster
community.aws.eks_cluster:
name: my_cluster
version: 1.14
role_arn: my_eks_role
subnets:
- subnet-aaaa1111
security_groups:
- my_eks_sg
- sg-abcd1234
register: caller_facts
- name: Remove an EKS cluster
community.aws.eks_cluster:
name: my_cluster
wait: true
state: absent