Skip to content

Commit

Permalink
update irsa with s3
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsk1 committed Jan 30, 2025
1 parent 0161238 commit 55a846a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

data "kubernetes_secret" "s3_bucket_arns" {
metadata {
name = "s3-bucket-output"
namespace = var.namespace
}
}

module "irsa" {
source = "github.com/ministryofjustice/cloud-platform-terraform-irsa?ref=2.0.0"

Expand All @@ -13,6 +21,7 @@ module "irsa" {
# provide an output called `irsa_policy_arn` that can be used.
role_policy_arns = {
rds = module.rds.irsa_policy_arn
s3 = data.kubernetes_secret.s3_bucket_arns.data.service_metadata_bucket_irsa
}

# Tags
Expand All @@ -34,4 +43,4 @@ resource "kubernetes_secret" "irsa" {
serviceaccount = module.irsa.service_account.name
rolearn = module.irsa.role_arn
}
}
}

0 comments on commit 55a846a

Please sign in to comment.