EKSCreateClusterOperator

Amazon

Creates an Amazon EKS Cluster control plane.

View on GitHub

Last Updated: Sep. 12, 2021

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

cluster_namestrThe unique name to give to your Amazon EKS Cluster. (templated)
cluster_role_arnstrThe Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. (templated)
resources_vpc_configDictThe VPC configuration used by the cluster control plane. (templated)
computestrThe type of compute architecture to generate along with the cluster. (templated) Defaults to ‘nodegroup’ to generate an EKS Managed Nodegroup.
aws_conn_idstrThe Airflow connection used for AWS credentials. (templated) If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then the default boto3 configuration would be used (and must be maintained on each worker node).
regionstrWhich AWS region the connection should use. (templated) If this is None or empty then the default boto3 behaviour is used.

Documentation

Creates an Amazon EKS Cluster control plane.

Optionally, can also create the supporting compute architecture: If argument ‘compute’ is provided with a value of ‘nodegroup’, will also attempt to create an Amazon EKS Managed Nodegroup for the cluster. See EKSCreateNodegroupOperator documentation for requirements.

See also

For more information on how to use this operator, take a look at the guide: Create an Amazon EKS Cluster

If compute is assigned the value of nodegroup, the following are required:

param nodegroup_name

The unique name to give your EKS Managed Nodegroup. (templated)

type nodegroup_name

str

param nodegroup_role_arn

The Amazon Resource Name (ARN) of the IAM role to associate with the EKS Managed Nodegroup. (templated)

type nodegroup_role_arn

str

Was this page helpful?