Skip to main content

fargate_profiles

Creates, updates, deletes or gets a fargate_profile resource or lists fargate_profiles in a region

Overview

Namefargate_profiles
TypeResource
DescriptionResource Schema for AWS::EKS::FargateProfile
Idawscc.eks.fargate_profiles

Fields

NameDatatypeDescription
cluster_namestringName of the Cluster
fargate_profile_namestringName of FargateProfile
pod_execution_role_arnstringThe IAM policy arn for pods
arnstring
subnetsarray
selectorsarray
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::EKS::FargateProfile.

Methods

NameResourceAccessible byRequired Params
create_resourcefargate_profilesINSERTClusterName, PodExecutionRoleArn, Selectors, region
delete_resourcefargate_profilesDELETEIdentifier, region
update_resourcefargate_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesfargate_profiles_list_onlySELECTregion
get_resourcefargate_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual fargate_profile.

SELECT
region,
cluster_name,
fargate_profile_name,
pod_execution_role_arn,
arn,
subnets,
selectors,
tags
FROM awscc.eks.fargate_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ cluster_name }}|{{ fargate_profile_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new fargate_profile resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.eks.fargate_profiles (
ClusterName,
PodExecutionRoleArn,
Selectors,
region
)
SELECT
'{{ cluster_name }}',
'{{ pod_execution_role_arn }}',
'{{ selectors }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a fargate_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.eks.fargate_profiles
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ cluster_name }}|{{ fargate_profile_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.eks.fargate_profiles
WHERE
Identifier = '{{ cluster_name }}|{{ fargate_profile_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the fargate_profiles resource, the following permissions are required:

eks:CreateFargateProfile,
eks:DescribeFargateProfile,
iam:GetRole,
iam:PassRole,
iam:CreateServiceLinkedRole,
eks:TagResource