aws::eks-cluster¶
Creates an eks cluster.
Example¶
aws::eks-cluster ex
name: "example-eks-gyro"
role: "arn:aws:iam::242040583208:role/EXAMPLE_EKS_ROLE"
version: 1.15
vpc-config
enable-endpoint-private-access: true
enable-endpoint-public-access: true
subnets: [
$(aws::subnet "subnet-example-us-east-1a"),
$(aws::subnet "subnet-example-us-east-1b")
]
security-groups: [
$(aws::security-group security-group-example)
]
public-access-cidrs: [
"0.0.0.0/0"
]
end
logging
enabled-log-types
log-types: [audit, api]
end
end
encryption-config
provider
key: $(external-query aws::kms-key { key-id: "c5245825-8526-4032-a67c-21656f220312"})
end
end
tags: {
"example-tag-key": "example-tag-value"
}
end
Attributes¶
Attribute | Description |
---|---|
name | The name of the EKS cluster. (Required) |
role | The IAM role that provides permissions for the EKS. (Required) |
version | The desired Kubernetes version for your cluster. Defaults to 1.15 |
vpc-config subresource | The VPC configuration used by the cluster. (Required)
|
logging subresource | The logging configuration used by the cluster.
|
encryption-config list subresource | The encryption configuration used by the cluster.
|
addon list subresource | The addon configuration for the cluster.
|
tags map | The tags to attach to the cluster. |
authentication subresource | The authentication config for the cluster.
|
Outputs¶
Attribute | Description |
---|---|
arn | The Amazon Resource Number (ARN) of the cluster. |
oidc-provider-url | The issuer URL for the OIDC identity provider. |
endpoint | The endpoint for the cluster. |
certificate-authority-data | The certificate authority to verify when connecting to the cluster. |