From b25e40f5a5ff123ee067cbc58a359e0c45c091b6 Mon Sep 17 00:00:00 2001 From: Nicolas Ochem Date: Sat, 19 Aug 2023 10:05:50 -0700 Subject: [PATCH] apply differently --- pulumi/certManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulumi/certManager.ts b/pulumi/certManager.ts index c01b4090..451de891 100644 --- a/pulumi/certManager.ts +++ b/pulumi/certManager.ts @@ -10,8 +10,8 @@ const certManagerNS = "cert-manager" const deployCertManager = (cluster: eks.Cluster, awsAccountId: pulumi.Output) => { const saName = "cert-manager" const roleName = "teztnets-cert-manager"; - const certManagerRole = clusterOidcUrl?.apply( - (url) => + const certManagerRole = pulumi.all([clusterOidcUrl, awsAccountId]).apply( + ([url, awsAccountId]) => new aws.iam.Role("teztnets-cert-manager", { name: roleName, assumeRolePolicy: {