-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update flyte bucket policies * add roles for flyte * add flyte roles names to irsa vars * add back default value for flyte * register flyte outputs * fix typo in dataplane role name * update flyte outputs, add account_id * update regex * update regex to pass ci * add newline at the end of the file
- Loading branch information
Showing
9 changed files
with
96 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
resource "aws_iam_role" "flyte_controlplane_role" { | ||
count = var.flyte.enabled ? 1 : 0 | ||
name = "${local.name_prefix}-flyte-controlplane-role" | ||
assume_role_policy = jsonencode({ | ||
Version = "2012-10-17" | ||
Statement = [ | ||
{ | ||
Action = "sts:AssumeRoleWithWebIdentity" | ||
Effect = "Allow" | ||
Principal = { | ||
Federated = local.oidc_provider_arn | ||
} | ||
Condition : { | ||
StringEquals : { | ||
"${trimprefix(local.oidc_provider_url, "https://")}:aud" : "sts.amazonaws.com", | ||
"${trimprefix(local.oidc_provider_url, "https://")}:sub" : [ | ||
"system:serviceaccount:flyte:flyteadmin", | ||
"system:serviceaccount:flyte:datacatalog" | ||
] | ||
} | ||
} | ||
}, | ||
] | ||
}) | ||
} | ||
|
||
resource "aws_iam_role" "flyte_dataplane_role" { | ||
count = var.flyte.enabled ? 1 : 0 | ||
name = "${local.name_prefix}-flyte-dataplane-role" | ||
assume_role_policy = jsonencode({ | ||
Version = "2012-10-17" | ||
Statement = [ | ||
{ | ||
Action = "sts:AssumeRoleWithWebIdentity" | ||
Effect = "Allow" | ||
Principal = { | ||
Federated = local.oidc_provider_arn | ||
} | ||
Condition : { | ||
StringEquals : { | ||
"${trimprefix(local.oidc_provider_url, "https://")}:aud" : "sts.amazonaws.com", | ||
"${trimprefix(local.oidc_provider_url, "https://")}:sub" : [ | ||
"system:serviceaccount:flyte:flytepropeller", | ||
"system:serviceaccount:*:default" | ||
] | ||
} | ||
} | ||
}, | ||
] | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters