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 = 'us-east-1' 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 }}';

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 }}';

DELETE example

/*+ delete */
DELETE FROM awscc.eks.fargate_profiles
WHERE
Identifier = '{{ cluster_name }}|{{ fargate_profile_name }}' AND
region = 'us-east-1';

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