Class FargateProfile
Manages an EKS Fargate Profile.
Example Usage
Example IAM Role for EKS Fargate Profile
using System.Collections.Generic;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Iam.Role("example", new Aws.Iam.RoleArgs
{
AssumeRolePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
{
{ "Statement", new[]
{
new Dictionary<string, object?>
{
{ "Action", "sts:AssumeRole" },
{ "Effect", "Allow" },
{ "Principal", new Dictionary<string, object?>
{
{ "Service", "eks-fargate-pods.amazonaws.com" },
} },
},
}
},
{ "Version", "2012-10-17" },
}),
});
var example_AmazonEKSFargatePodExecutionRolePolicy = new Aws.Iam.RolePolicyAttachment("example-AmazonEKSFargatePodExecutionRolePolicy", new Aws.Iam.RolePolicyAttachmentArgs
{
PolicyArn = "arn:aws:iam::aws:policy/AmazonEKSFargatePodExecutionRolePolicy",
Role = example.Name,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Eks
Assembly: Pulumi.Aws.dll
Syntax
public class FargateProfile : CustomResource
Constructors
View SourceFargateProfile(String, FargateProfileArgs, CustomResourceOptions)
Create a FargateProfile resource with the given unique name, arguments, and options.
Declaration
public FargateProfile(string name, FargateProfileArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FargateProfileArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Amazon Resource Name (ARN) of the EKS Fargate Profile.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClusterName
Name of the EKS Cluster.
Declaration
public Output<string> ClusterName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FargateProfileName
Name of the EKS Fargate Profile.
Declaration
public Output<string> FargateProfileName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PodExecutionRoleArn
Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Fargate Profile.
Declaration
public Output<string> PodExecutionRoleArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Selectors
Configuration block(s) for selecting Kubernetes Pods to execute with this EKS Fargate Profile. Detailed below.
Declaration
public Output<ImmutableArray<FargateProfileSelector>> Selectors { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FargateProfileSelector>> |
Status
Status of the EKS Fargate Profile.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetIds
Identifiers of private EC2 Subnets to associate with the EKS Fargate Profile. These subnets must have the following resource tag: kubernetes.io/cluster/CLUSTER_NAME (where CLUSTER_NAME is replaced with the name of the EKS Cluster).
Declaration
public Output<ImmutableArray<string>> SubnetIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
Key-value map of resource tags.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, FargateProfileState, CustomResourceOptions)
Get an existing FargateProfile resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FargateProfile Get(string name, Input<string> id, FargateProfileState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FargateProfileState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FargateProfile |