mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-05-01 21:04:27 +02:00
feat: Add EKS Fargate support (#1067)
Co-authored-by: Simon Gurcke <simon@gurcke.de> Co-authored-by: Daniel Piddock <33028589+dpiddockcmp@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
571da60aea
commit
0d77e30075
17
modules/fargate/data.tf
Normal file
17
modules/fargate/data.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
data "aws_iam_policy_document" "eks_fargate_pod_assume_role" {
|
||||
count = local.create_eks && var.create_fargate_pod_execution_role ? 1 : 0
|
||||
statement {
|
||||
effect = "Allow"
|
||||
actions = ["sts:AssumeRole"]
|
||||
|
||||
principals {
|
||||
type = "Service"
|
||||
identifiers = ["eks-fargate-pods.amazonaws.com"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data "aws_iam_role" "custom_fargate_iam_role" {
|
||||
count = local.create_eks && ! var.create_fargate_pod_execution_role ? 1 : 0
|
||||
name = var.fargate_pod_execution_role_name
|
||||
}
|
||||
Reference in New Issue
Block a user