1. Packages
  2. LBr Labs EKS
  3. API Docs
  4. IamServiceAccountRole
LBr Labs EKS v1.3.0 published on Monday, Mar 24, 2025 by lbrlabs

lbrlabs-eks.IamServiceAccountRole

Explore with Pulumi AI

Create IamServiceAccountRole Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IamServiceAccountRole(name: string, args: IamServiceAccountRoleArgs, opts?: ComponentResourceOptions);
@overload
def IamServiceAccountRole(resource_name: str,
                          args: IamServiceAccountRoleArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def IamServiceAccountRole(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          namespace_name: Optional[str] = None,
                          oidc_provider_arn: Optional[str] = None,
                          oidc_provider_url: Optional[str] = None,
                          service_account_name: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
func NewIamServiceAccountRole(ctx *Context, name string, args IamServiceAccountRoleArgs, opts ...ResourceOption) (*IamServiceAccountRole, error)
public IamServiceAccountRole(string name, IamServiceAccountRoleArgs args, ComponentResourceOptions? opts = null)
public IamServiceAccountRole(String name, IamServiceAccountRoleArgs args)
public IamServiceAccountRole(String name, IamServiceAccountRoleArgs args, ComponentResourceOptions options)
type: lbrlabs-eks:IamServiceAccountRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IamServiceAccountRoleArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IamServiceAccountRoleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IamServiceAccountRoleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IamServiceAccountRoleArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamServiceAccountRoleArgs
The arguments to resource properties.
options ComponentResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var iamServiceAccountRoleResource = new Eks.IamServiceAccountRole("iamServiceAccountRoleResource", new()
{
    NamespaceName = "string",
    OidcProviderArn = "string",
    OidcProviderUrl = "string",
    ServiceAccountName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := lbrlabseks.NewIamServiceAccountRole(ctx, "iamServiceAccountRoleResource", &lbrlabseks.IamServiceAccountRoleArgs{
	NamespaceName:      pulumi.String("string"),
	OidcProviderArn:    pulumi.String("string"),
	OidcProviderUrl:    pulumi.String("string"),
	ServiceAccountName: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var iamServiceAccountRoleResource = new IamServiceAccountRole("iamServiceAccountRoleResource", IamServiceAccountRoleArgs.builder()
    .namespaceName("string")
    .oidcProviderArn("string")
    .oidcProviderUrl("string")
    .serviceAccountName("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
iam_service_account_role_resource = lbrlabs_eks.IamServiceAccountRole("iamServiceAccountRoleResource",
    namespace_name="string",
    oidc_provider_arn="string",
    oidc_provider_url="string",
    service_account_name="string",
    tags={
        "string": "string",
    })
Copy
const iamServiceAccountRoleResource = new lbrlabs_eks.IamServiceAccountRole("iamServiceAccountRoleResource", {
    namespaceName: "string",
    oidcProviderArn: "string",
    oidcProviderUrl: "string",
    serviceAccountName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: lbrlabs-eks:IamServiceAccountRole
properties:
    namespaceName: string
    oidcProviderArn: string
    oidcProviderUrl: string
    serviceAccountName: string
    tags:
        string: string
Copy

IamServiceAccountRole Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IamServiceAccountRole resource accepts the following input properties:

NamespaceName This property is required. string
The namespace to create the service account in.
OidcProviderArn This property is required. string
The arn of the OIDC provider attached to your EKS cluster.
OidcProviderUrl This property is required. string
The URL of the OIDC provider attached to your EKS cluster.
ServiceAccountName This property is required. string
The name of the service account to bind to the role
Tags Dictionary<string, string>
Key-value map of tags to apply to the service account.
NamespaceName This property is required. string
The namespace to create the service account in.
OidcProviderArn This property is required. string
The arn of the OIDC provider attached to your EKS cluster.
OidcProviderUrl This property is required. string
The URL of the OIDC provider attached to your EKS cluster.
ServiceAccountName This property is required. string
The name of the service account to bind to the role
Tags map[string]string
Key-value map of tags to apply to the service account.
namespaceName This property is required. String
The namespace to create the service account in.
oidcProviderArn This property is required. String
The arn of the OIDC provider attached to your EKS cluster.
oidcProviderUrl This property is required. String
The URL of the OIDC provider attached to your EKS cluster.
serviceAccountName This property is required. String
The name of the service account to bind to the role
tags Map<String,String>
Key-value map of tags to apply to the service account.
namespaceName This property is required. string
The namespace to create the service account in.
oidcProviderArn This property is required. string
The arn of the OIDC provider attached to your EKS cluster.
oidcProviderUrl This property is required. string
The URL of the OIDC provider attached to your EKS cluster.
serviceAccountName This property is required. string
The name of the service account to bind to the role
tags {[key: string]: string}
Key-value map of tags to apply to the service account.
namespace_name This property is required. str
The namespace to create the service account in.
oidc_provider_arn This property is required. str
The arn of the OIDC provider attached to your EKS cluster.
oidc_provider_url This property is required. str
The URL of the OIDC provider attached to your EKS cluster.
service_account_name This property is required. str
The name of the service account to bind to the role
tags Mapping[str, str]
Key-value map of tags to apply to the service account.
namespaceName This property is required. String
The namespace to create the service account in.
oidcProviderArn This property is required. String
The arn of the OIDC provider attached to your EKS cluster.
oidcProviderUrl This property is required. String
The URL of the OIDC provider attached to your EKS cluster.
serviceAccountName This property is required. String
The name of the service account to bind to the role
tags Map<String>
Key-value map of tags to apply to the service account.

Outputs

All input properties are implicitly available as output properties. Additionally, the IamServiceAccountRole resource produces the following output properties:

Role Pulumi.Aws.Iam.Role
This type is defined in the AWS Classic package.
Role Role
This type is defined in the AWS Classic package.
role Role
This type is defined in the AWS Classic package.
role pulumiAwsiamRole
This type is defined in the AWS Classic package.
role pulumi_aws.iam.Role
This type is defined in the AWS Classic package.
role aws:iam:Role
This type is defined in the AWS Classic package.

Package Details

Repository
lbrlabs-eks lbrlabs/pulumi-lbrlabs-eks
License