Access Entry
Access Entry Configurations for an EKS Cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.eks.AccessEntry("example", {
clusterName: exampleAwsEksCluster.name,
principalArn: exampleAwsIamRole.arn,
kubernetesGroups: [
"group-1",
"group-2",
],
type: "STANDARD",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.eks.AccessEntry("example",
cluster_name=example_aws_eks_cluster["name"],
principal_arn=example_aws_iam_role["arn"],
kubernetes_groups=[
"group-1",
"group-2",
],
type="STANDARD")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Eks.AccessEntry("example", new()
{
ClusterName = exampleAwsEksCluster.Name,
PrincipalArn = exampleAwsIamRole.Arn,
KubernetesGroups = new[]
{
"group-1",
"group-2",
},
Type = "STANDARD",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/eks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eks.NewAccessEntry(ctx, "example", &eks.AccessEntryArgs{
ClusterName: pulumi.Any(exampleAwsEksCluster.Name),
PrincipalArn: pulumi.Any(exampleAwsIamRole.Arn),
KubernetesGroups: pulumi.StringArray{
pulumi.String("group-1"),
pulumi.String("group-2"),
},
Type: pulumi.String("STANDARD"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.eks.AccessEntry;
import com.pulumi.aws.eks.AccessEntryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AccessEntry("example", AccessEntryArgs.builder()
.clusterName(exampleAwsEksCluster.name())
.principalArn(exampleAwsIamRole.arn())
.kubernetesGroups(
"group-1",
"group-2")
.type("STANDARD")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:eks:AccessEntry
properties:
clusterName: ${exampleAwsEksCluster.name}
principalArn: ${exampleAwsIamRole.arn}
kubernetesGroups:
- group-1
- group-2
type: STANDARD
Content copied to clipboard
Import
Using pulumi import
, import EKS access entry using the cluster_name
and principal_arn
separated by a colon (:
). For example:
$ pulumi import aws:eks/accessEntry:AccessEntry my_eks_access_entry my_cluster_name:my_principal_arn
Content copied to clipboard
Properties
Link copied to clipboard
Amazon Resource Name (ARN) of the Access Entry.
Link copied to clipboard
Name of the EKS Cluster.
Link copied to clipboard
Date and time in RFC3339 format that the EKS add-on was created.
Link copied to clipboard
List of string which can optionally specify the Kubernetes groups the user would belong to when creating an access entry.
Link copied to clipboard
Date and time in RFC3339 format that the EKS add-on was updated.
Link copied to clipboard
The IAM Principal ARN which requires Authentication access to the EKS cluster. The following arguments are optional:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard