Resource
dcloud_eks_access_policy_association
Grants an access entry one of the cluster's access policies, cluster-wide or in namespaces. ClusterAdmin is always cluster-wide. Its id is <cluster_id>/<access_entry_id>/<policy>.
Example Usage
resource "dcloud_eks_access_policy_association" "deployer_edit" {
cluster_id = dcloud_eks_cluster.main.id
access_entry_id = dcloud_eks_access_entry.deployer.id
policy = "Edit"
namespaces = ["web", "jobs"]
}Schema
Required
access_entry_id(String) The id of the parent resource ({id}in the path). Changing it replaces the resource.cluster_id(String) The id of the parent resource ({cluster}in the path). Changing it replaces the resource.policy(String) The access policy. One of:ClusterAdmin,Admin,Edit,View. Changing it replaces the resource.
Optional
namespaces(Set of String) Namespaces it applies in; cluster-wide when empty. ClusterAdmin is always cluster-wide Changing it replaces the resource.
Read-Only
id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_eks_access_policy_association.deployer_edit <cluster-id>/<entry-id>/EditGenerated from the provider's schema.
Related