Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Retrieve information about an EKS add-on.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Eks.GetAddon.Invoke(new()
{
AddonName = "vpc-cni",
ClusterName = aws_eks_cluster.Example.Name,
});
return new Dictionary<string, object?>
{
["eksAddonOutputs"] = aws_eks_addon.Example,
};
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/eks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eks.LookupAddon(ctx, &eks.LookupAddonArgs{
AddonName: "vpc-cni",
ClusterName: aws_eks_cluster.Example.Name,
}, nil)
if err != nil {
return err
}
ctx.Export("eksAddonOutputs", aws_eks_addon.Example)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.eks.EksFunctions;
import com.pulumi.aws.eks.inputs.GetAddonArgs;
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) {
final var example = EksFunctions.getAddon(GetAddonArgs.builder()
.addonName("vpc-cni")
.clusterName(aws_eks_cluster.example().name())
.build());
ctx.export("eksAddonOutputs", aws_eks_addon.example());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.eks.getAddon({
addonName: "vpc-cni",
clusterName: aws_eks_cluster.example.name,
});
export const eksAddonOutputs = aws_eks_addon.example;
import pulumi
import pulumi_aws as aws
example = aws.eks.get_addon(addon_name="vpc-cni",
cluster_name=aws_eks_cluster["example"]["name"])
pulumi.export("eksAddonOutputs", aws_eks_addon["example"])
variables:
example:
fn::invoke:
Function: aws:eks:getAddon
Arguments:
addonName: vpc-cni
clusterName: ${aws_eks_cluster.example.name}
outputs:
eksAddonOutputs: ${aws_eks_addon.example}
Using getAddon
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAddon(args: GetAddonArgs, opts?: InvokeOptions): Promise<GetAddonResult>
function getAddonOutput(args: GetAddonOutputArgs, opts?: InvokeOptions): Output<GetAddonResult>def get_addon(addon_name: Optional[str] = None,
cluster_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetAddonResult
def get_addon_output(addon_name: Optional[pulumi.Input[str]] = None,
cluster_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAddonResult]func LookupAddon(ctx *Context, args *LookupAddonArgs, opts ...InvokeOption) (*LookupAddonResult, error)
func LookupAddonOutput(ctx *Context, args *LookupAddonOutputArgs, opts ...InvokeOption) LookupAddonResultOutput> Note: This function is named LookupAddon in the Go SDK.
public static class GetAddon
{
public static Task<GetAddonResult> InvokeAsync(GetAddonArgs args, InvokeOptions? opts = null)
public static Output<GetAddonResult> Invoke(GetAddonInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAddonResult> getAddon(GetAddonArgs args, InvokeOptions options)
public static Output<GetAddonResult> getAddon(GetAddonArgs args, InvokeOptions options)
fn::invoke:
function: aws:eks/getAddon:getAddon
arguments:
# arguments dictionaryThe following arguments are supported:
- Addon
Name string - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- Cluster
Name string - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - Dictionary<string, string>
- Addon
Name string - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- Cluster
Name string - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - map[string]string
- addon
Name String - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- cluster
Name String - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - Map<String,String>
- addon
Name string - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- cluster
Name string - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - {[key: string]: string}
- addon_
name str - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- cluster_
name str - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - Mapping[str, str]
- addon
Name String - Name of the EKS add-on. The name must match one of the names returned by list-addon.
- cluster
Name String - Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (
^[0-9A-Za-z][A-Za-z0-9\-_]+$). - Map<String>
getAddon Result
The following output properties are available:
- Addon
Name string - Addon
Version string - Version of EKS add-on.
- Arn string
- ARN of the EKS add-on.
- Cluster
Name string - Configuration
Values string - Configuration values for the addon with a single JSON string.
- Created
At string - Date and time in RFC3339 format that the EKS add-on was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Date and time in RFC3339 format that the EKS add-on was updated.
- Service
Account stringRole Arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- Dictionary<string, string>
- Addon
Name string - Addon
Version string - Version of EKS add-on.
- Arn string
- ARN of the EKS add-on.
- Cluster
Name string - Configuration
Values string - Configuration values for the addon with a single JSON string.
- Created
At string - Date and time in RFC3339 format that the EKS add-on was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Date and time in RFC3339 format that the EKS add-on was updated.
- Service
Account stringRole Arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- map[string]string
- addon
Name String - addon
Version String - Version of EKS add-on.
- arn String
- ARN of the EKS add-on.
- cluster
Name String - configuration
Values String - Configuration values for the addon with a single JSON string.
- created
At String - Date and time in RFC3339 format that the EKS add-on was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - Date and time in RFC3339 format that the EKS add-on was updated.
- service
Account StringRole Arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- Map<String,String>
- addon
Name string - addon
Version string - Version of EKS add-on.
- arn string
- ARN of the EKS add-on.
- cluster
Name string - configuration
Values string - Configuration values for the addon with a single JSON string.
- created
At string - Date and time in RFC3339 format that the EKS add-on was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
At string - Date and time in RFC3339 format that the EKS add-on was updated.
- service
Account stringRole Arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- {[key: string]: string}
- addon_
name str - addon_
version str - Version of EKS add-on.
- arn str
- ARN of the EKS add-on.
- cluster_
name str - configuration_
values str - Configuration values for the addon with a single JSON string.
- created_
at str - Date and time in RFC3339 format that the EKS add-on was created.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
at str - Date and time in RFC3339 format that the EKS add-on was updated.
- service_
account_ strrole_ arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- Mapping[str, str]
- addon
Name String - addon
Version String - Version of EKS add-on.
- arn String
- ARN of the EKS add-on.
- cluster
Name String - configuration
Values String - Configuration values for the addon with a single JSON string.
- created
At String - Date and time in RFC3339 format that the EKS add-on was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - Date and time in RFC3339 format that the EKS add-on was updated.
- service
Account StringRole Arn - ARN of IAM role used for EKS add-on. If value is empty - then add-on uses the IAM role assigned to the EKS Cluster node.
- Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
