From 06c1f3e233cbd2bdb28d5b9c2bbe793227dd5fde Mon Sep 17 00:00:00 2001 From: akash1810 Date: Wed, 25 Jan 2023 06:35:08 +0000 Subject: [PATCH] fix: ensure `GuUserData` supports multiple ASGs in a single stack --- src/constructs/autoscaling/user-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constructs/autoscaling/user-data.ts b/src/constructs/autoscaling/user-data.ts index 1a4f706664..1ffcdaa303 100644 --- a/src/constructs/autoscaling/user-data.ts +++ b/src/constructs/autoscaling/user-data.ts @@ -30,7 +30,7 @@ export class GuUserData { private downloadDistributable(scope: GuStack, app: AppIdentity, props: GuDistributableForEc2) { const bucketKey = GuDistributable.getObjectKey(scope, app, props); - const bucket = Bucket.fromBucketAttributes(scope, "DistributionBucket", { + const bucket = Bucket.fromBucketAttributes(scope, `DistributionBucket-${app.app}`, { bucketName: GuDistributionBucketParameter.getInstance(scope).valueAsString, });