From ec8909cf4b24e00d59026e726d3bf48bfec96002 Mon Sep 17 00:00:00 2001 From: Tianle Huang Date: Mon, 14 Feb 2022 07:58:40 +0000 Subject: [PATCH] add permissions for index.json Signed-off-by: Tianle Huang --- deployment/lib/identities.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployment/lib/identities.ts b/deployment/lib/identities.ts index b0f4840614..ef85d91fe2 100644 --- a/deployment/lib/identities.ts +++ b/deployment/lib/identities.ts @@ -48,6 +48,9 @@ export class Identities { props.buildBucket.grantRead(bundleRole, '*/dist/*'); props.buildBucket.grantPut(bundleRole, '*/dist/*'); + props.buildBucket.grantRead(bundleRole, '*/index.json'); + props.buildBucket.grantPut(bundleRole, '*/index.json'); + props.buildBucket.grantRead(testRole, '*/dist/*'); props.buildBucket.grantPut(testRole, '*/dist/*/tests/*'); props.buildBucket.grantPut(testRole, '*/test-results/*');