Skip to content

Commit

Permalink
fix: Handle account being integrated with an existing org (#12149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmarzex committed Sep 13, 2023
1 parent 307865d commit 561a875
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/utils/serverless-dashboard.js
Expand Up @@ -340,6 +340,13 @@ const DashboardService = (serverless, options) => {
return true;
}

if (!context.integration) {
log.warning(
`The AWS account, ${context.awsAccountId}, is already integrated with another org. Serverless Dashboard monitoring will not work`
);
return false;
}

const stackExists = await checkIfStackExists();

if (stackExists) {
Expand Down

0 comments on commit 561a875

Please sign in to comment.