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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTClusterName, PodExecutionRoleArn, Selectors, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all fargate_profiles in a region.

SELECT
region,
cluster_name,
fargate_profile_name,
pod_execution_role_arn,
arn,
subnets,
selectors,
tags
FROM aws.eks.fargate_profiles
WHERE region = 'us-east-1';

Gets all properties from an individual fargate_profile.

SELECT
region,
cluster_name,
fargate_profile_name,
pod_execution_role_arn,
arn,
subnets,
selectors,
tags
FROM aws.eks.fargate_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<ClusterName>|<FargateProfileName>';

INSERT example

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

/*+ create */
INSERT INTO aws.eks.fargate_profiles (
ClusterName,
PodExecutionRoleArn,
Selectors,
region
)
SELECT
'{{ ClusterName }}',
'{{ PodExecutionRoleArn }}',
'{{ Selectors }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.eks.fargate_profiles
WHERE data__Identifier = '<ClusterName|FargateProfileName>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

eks:DescribeFargateProfile

Delete

eks:DeleteFargateProfile,
eks:DescribeFargateProfile

List

eks:ListFargateProfiles

Update

eks:DescribeFargateProfile,
eks:ListTagsForResource,
eks:TagResource,
eks:UntagResource