Skip to content

Commit

Permalink
Add description to gateway stage based on vpcLink hash
Browse files Browse the repository at this point in the history
  • Loading branch information
gordon-klotho committed Feb 7, 2023
1 parent a428078 commit da2e808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/infra/pulumi_aws/iac/api_gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ export class ApiGateway {
stageVariables: {
vpcLinkId: vpcLink.id,
},
// Vary the description to force recreation if the vpcLink changes
// https://github.com/hashicorp/terraform/issues/6613#issuecomment-322264393
// https://github.com/hashicorp/terraform/issues/18392#issuecomment-402684841
description: pulumi.interpolate`Stage hash: ${sha256.sync(vpcLink.id)}`,
},
{
dependsOn: [vpcLink],
Expand Down

0 comments on commit da2e808

Please sign in to comment.