consoleme icon indicating copy to clipboard operation
consoleme copied to clipboard

There is already a Construct with name 'ConsoleMeSpoke' in App

Open Rayv1 opened this issue 4 years ago • 3 comments
trafficstars

Describe the bug Hi, Iam trying to deploy ConsoleMe with CDK, but when there are two spoke Accounts, cdk fails with error: 'There is already a Construct with name 'ConsoleMeSpoke' in App'

The main issue here is, that the ConsolemeSpokeAccountsStack Construct use the constant SPOKE_BASE_NAME, which is always 'ConsoleMeSpoke'. This should be something like SPOKE_BASE_NAME + Account Id.

To Reproduce Deploy with two spoke Accounts.

Expected behavior Working Deployment

Is there something that i have missed?

Rayv1 avatar Sep 22 '21 11:09 Rayv1

Hello! The CDK deployment strategy is deployed by the community. Looping in @avishayil, who may have some ideas here.

castrapel avatar Sep 23 '21 03:09 castrapel

Hi @Rayv1 good point, the solution shouldn't be difficult like you mentioned. Care to PR or I'll do it?

avishayil avatar Sep 23 '21 18:09 avishayil

@avishayil could you please do it? thanks!

Rayv1 avatar Sep 24 '21 10:09 Rayv1