EKS Fargate Profile Module
Configuration in this directory creates a Fargate EKS Profile
module "fargate_profile" {
source = " terraform-aws-modules/eks/aws//modules/fargate-profile"
name = " separate-fargate-profile"
cluster_name = " my-cluster"
subnet_ids = [" subnet-abcde012" , " subnet-bcde012a" , " subnet-fghi345a" ]
selectors = [{
namespace = " kube-system"
}]
tags = {
Environment = " dev"
Terraform = " true"
}
}
No modules.
Name
Description
Type
Default
Required
cluster_ip_family
The IP family used to assign Kubernetes pod and service addresses. Valid values are ipv4
(default) and ipv6
string
"ipv4"
no
cluster_name
Name of the EKS cluster
string
null
no
create
Determines whether to create Fargate profile or not
bool
true
no
create_iam_role
Determines whether an IAM role is created or to use an existing IAM role
bool
true
no
create_iam_role_policy
Determines whether an IAM role policy is created or not
bool
true
no
iam_role_additional_policies
Additional policies to be added to the IAM role
map(string)
{}
no
iam_role_arn
Existing IAM role ARN for the Fargate profile. Required if create_iam_role
is set to false
string
null
no
iam_role_attach_cni_policy
Whether to attach the AmazonEKS_CNI_Policy
/AmazonEKS_CNI_IPv6_Policy
IAM policy to the IAM IAM role. WARNING: If set false
the permissions must be assigned to the aws-node
DaemonSet pods via another method or nodes will not be able to join the cluster
bool
true
no
iam_role_description
Description of the role
string
null
no
iam_role_name
Name to use on IAM role created
string
""
no
iam_role_path
IAM role path
string
null
no
iam_role_permissions_boundary
ARN of the policy that is used to set the permissions boundary for the IAM role
string
null
no
iam_role_policy_statements
A list of IAM policy statements - used for adding specific IAM permissions as needed
any
[]
no
iam_role_tags
A map of additional tags to add to the IAM role created
map(string)
{}
no
iam_role_use_name_prefix
Determines whether the IAM role name (iam_role_name
) is used as a prefix
bool
true
no
name
Name of the EKS Fargate Profile
string
""
no
selectors
Configuration block(s) for selecting Kubernetes Pods to execute with this Fargate Profile
any
[]
no
subnet_ids
A list of subnet IDs for the EKS Fargate Profile
list(string)
[]
no
tags
A map of tags to add to all resources
map(string)
{}
no
timeouts
Create and delete timeout configurations for the Fargate Profile
map(string)
{}
no