Skip to content

Commit

Permalink
ConnectInstance to have unique instanceAlias name so that prod and st…
Browse files Browse the repository at this point in the history
…aging don't conflict.
  • Loading branch information
Zemnmez committed Feb 16, 2024
1 parent f13f990 commit 82d7a79
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ts/pulumi/zemn.me/voice/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export class Voice extends Pulumi.ComponentResource {
inboundCallsEnabled: true,
outboundCallsEnabled: true,
identityManagementType: 'CONNECT_MANAGED',
instanceAlias: `${name}_connect_instance`.replaceAll(
/[^a-z]/g,
''
),
instanceAlias: new RandomPet(
`${name}_connect_instance_alias_name`,
{},
{ parent: this }
).id,
},
{ parent: this }
);
Expand Down

0 comments on commit 82d7a79

Please sign in to comment.