1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. eks
  5. FargateProfile

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.eks.FargateProfile

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Schema for AWS::EKS::FargateProfile

Create FargateProfile Resource

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

Constructor syntax

new FargateProfile(name: string, args: FargateProfileArgs, opts?: CustomResourceOptions);
@overload
def FargateProfile(resource_name: str,
                   args: FargateProfileArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def FargateProfile(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cluster_name: Optional[str] = None,
                   pod_execution_role_arn: Optional[str] = None,
                   selectors: Optional[Sequence[FargateProfileSelectorArgs]] = None,
                   fargate_profile_name: Optional[str] = None,
                   subnets: Optional[Sequence[str]] = None,
                   tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewFargateProfile(ctx *Context, name string, args FargateProfileArgs, opts ...ResourceOption) (*FargateProfile, error)
public FargateProfile(string name, FargateProfileArgs args, CustomResourceOptions? opts = null)
public FargateProfile(String name, FargateProfileArgs args)
public FargateProfile(String name, FargateProfileArgs args, CustomResourceOptions options)
type: aws-native:eks:FargateProfile
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. FargateProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
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. FargateProfileArgs
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. FargateProfileArgs
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. FargateProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
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. FargateProfileArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FargateProfile 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 FargateProfile resource accepts the following input properties:

ClusterName This property is required. string
Name of the Cluster
PodExecutionRoleArn This property is required. string
The IAM policy arn for pods
Selectors This property is required. List<Pulumi.AwsNative.Eks.Inputs.FargateProfileSelector>
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
FargateProfileName string
Name of FargateProfile
Subnets List<string>
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
Tags List<Pulumi.AwsNative.Inputs.Tag>
An array of key-value pairs to apply to this resource.
ClusterName This property is required. string
Name of the Cluster
PodExecutionRoleArn This property is required. string
The IAM policy arn for pods
Selectors This property is required. []FargateProfileSelectorArgs
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
FargateProfileName string
Name of FargateProfile
Subnets []string
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
Tags TagArgs
An array of key-value pairs to apply to this resource.
clusterName This property is required. String
Name of the Cluster
podExecutionRoleArn This property is required. String
The IAM policy arn for pods
selectors This property is required. List<FargateProfileSelector>
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
fargateProfileName String
Name of FargateProfile
subnets List<String>
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
tags List<Tag>
An array of key-value pairs to apply to this resource.
clusterName This property is required. string
Name of the Cluster
podExecutionRoleArn This property is required. string
The IAM policy arn for pods
selectors This property is required. FargateProfileSelector[]
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
fargateProfileName string
Name of FargateProfile
subnets string[]
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
tags Tag[]
An array of key-value pairs to apply to this resource.
cluster_name This property is required. str
Name of the Cluster
pod_execution_role_arn This property is required. str
The IAM policy arn for pods
selectors This property is required. Sequence[FargateProfileSelectorArgs]
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
fargate_profile_name str
Name of FargateProfile
subnets Sequence[str]
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
tags Sequence[TagArgs]
An array of key-value pairs to apply to this resource.
clusterName This property is required. String
Name of the Cluster
podExecutionRoleArn This property is required. String
The IAM policy arn for pods
selectors This property is required. List<Property Map>
The selectors to match for a Pod to use this Fargate profile. Each selector must have an associated Kubernetes namespace . Optionally, you can also specify labels for a namespace . You may specify up to five selectors in a Fargate profile.
fargateProfileName String
Name of FargateProfile
subnets List<String>
The IDs of subnets to launch a Pod into. A Pod running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
tags List<Property Map>
An array of key-value pairs to apply to this resource.

Outputs

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

Arn string
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
Id string
The provider-assigned unique ID for this managed resource.
Arn string
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
Id string
The provider-assigned unique ID for this managed resource.
arn String
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
id String
The provider-assigned unique ID for this managed resource.
arn string
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
id string
The provider-assigned unique ID for this managed resource.
arn str
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
id str
The provider-assigned unique ID for this managed resource.
arn String
The ARN of the cluster, such as arn:aws:eks:us-west-2:666666666666:fargateprofile/myCluster/myFargateProfile/1cb1a11a-1dc1-1d11-cf11-1111f11fa111 .
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

FargateProfileLabel
, FargateProfileLabelArgs

Key This property is required. string
The key name of the label.
Value This property is required. string
The value for the label.
Key This property is required. string
The key name of the label.
Value This property is required. string
The value for the label.
key This property is required. String
The key name of the label.
value This property is required. String
The value for the label.
key This property is required. string
The key name of the label.
value This property is required. string
The value for the label.
key This property is required. str
The key name of the label.
value This property is required. str
The value for the label.
key This property is required. String
The key name of the label.
value This property is required. String
The value for the label.

FargateProfileSelector
, FargateProfileSelectorArgs

Namespace This property is required. string
The Kubernetes namespace that the selector should match.
Labels List<Pulumi.AwsNative.Eks.Inputs.FargateProfileLabel>
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
Namespace This property is required. string
The Kubernetes namespace that the selector should match.
Labels []FargateProfileLabel
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
namespace This property is required. String
The Kubernetes namespace that the selector should match.
labels List<FargateProfileLabel>
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
namespace This property is required. string
The Kubernetes namespace that the selector should match.
labels FargateProfileLabel[]
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
namespace This property is required. str
The Kubernetes namespace that the selector should match.
labels Sequence[FargateProfileLabel]
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.
namespace This property is required. String
The Kubernetes namespace that the selector should match.
labels List<Property Map>
The Kubernetes labels that the selector should match. A pod must contain all of the labels that are specified in the selector for it to be considered a match.

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi