Skip to content

Commit c795453

Browse files
authored
fix: use description hash instead of URL query parameter (#103)
CloudFormation URL-encodes query parameters in templateUrl, treating them as part of the S3 key. Move the content hash to the StackSet description instead, which still triggers UpdateStackSet on content changes.
1 parent 77c3e7b commit c795453

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cloudformation/isb-hub/lib/isb-hub-stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ export class IsbHubStack extends cdk.Stack {
163163
executionRoleName: `InnovationSandbox-${ISB_NAMESPACE}-SandboxAccountRole`,
164164
capabilities: ['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', 'CAPABILITY_AUTO_EXPAND'],
165165
managedExecution: { Active: true },
166-
templateUrl: `https://${BLUEPRINTS_BUCKET_NAME}.s3.${BLUEPRINTS_BUCKET_REGION}.amazonaws.com/scenarios/${scenario.name}/template.yaml?v=${contentHash}`,
167-
description: scenario.description,
166+
templateUrl: `https://${BLUEPRINTS_BUCKET_NAME}.s3.${BLUEPRINTS_BUCKET_REGION}.amazonaws.com/scenarios/${scenario.name}/template.yaml`,
167+
description: `${scenario.description} [${contentHash}]`,
168168
});
169169

170170
// Ensure template is uploaded before StackSet references it

0 commit comments

Comments
 (0)