-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Hoseong-Seo <[email protected]>
- Loading branch information
1 parent
51b40d0
commit 86e9d1e
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ import { Construct } from 'constructs'; | |
|
||
export class ControlPlaneStack extends Stack { | ||
public readonly regApiGatewayUrl: string; | ||
public readonly eventManager: sbt.EventManager; | ||
public readonly eventManager: sbt.IEventManager; | ||
|
||
constructor(scope: Construct, id: string, props?: any) { | ||
super(scope, id, props); | ||
|
@@ -137,7 +137,7 @@ import { ControlPlaneStack } from '../lib/control-plane'; | |
const app = new cdk.App(); | ||
const controlPlaneStack = new ControlPlaneStack(app, 'ControlPlaneStack'); | ||
// const appPlaneStack = new AppPlaneStack(app, 'AppPlaneStack', { | ||
// eventBusArn: controlPlaneStack.eventBusArn, | ||
// eventManager: controlPlaneStack.eventManager, | ||
// }); | ||
``` | ||
|
||
|
@@ -168,19 +168,15 @@ As mentioned before, SBT is unopinionated about the application in which it's de | |
|
||
```typescript | ||
export interface AppPlaneProps extends cdk.StackProps { | ||
eventBusArn: string; | ||
eventManager: sbt.IEventManager; | ||
} | ||
|
||
export class ApplicationPlaneStack extends Stack { | ||
constructor(scope: Construct, id: string, props: AppPlaneProps) { | ||
super(scope, id, props); | ||
|
||
const eventBus = EventBus.fromEventBusArn(this, 'EventBus', props.eventBusArn); | ||
const eventManager = new sbt.EventManager(this, 'EventManager', { | ||
eventBus: eventBus, | ||
}); | ||
new sbt.CoreApplicationPlane(this, 'CoreApplicationPlane', { | ||
eventManager: eventManager, | ||
eventManager: props.eventManager, | ||
jobRunnersList: [], | ||
}); | ||
} | ||
|
@@ -364,7 +360,7 @@ import { EventBus } from 'aws-cdk-lib/aws-events'; | |
import { PolicyDocument, PolicyStatement, Effect } from 'aws-cdk-lib/aws-iam'; | ||
|
||
export interface AppPlaneProps extends cdk.StackProps { | ||
eventManager: sbt.EventManager; | ||
eventManager: sbt.IEventManager; | ||
} | ||
export class AppPlaneStack extends cdk.Stack { | ||
constructor(scope: cdk.App, id: string, props: AppPlaneProps) { | ||
|
@@ -473,7 +469,7 @@ cdk deploy ControlPlaneStack AppPlaneStack | |
Once deployed, let's run a few tests to see our basic control plane and application plane in action. When you deployed the control plane, you should've received an email with temporary admin credentials. Let's use those credentials now to log in to that account. Please replace the placeholder ('INSERT PASSWORD HERE') with your temporary password in the script below. Once logged in, this script will onboard a new tenant, and retrieve its details. Note this script uses the [`jq` JSON processor](https://jqlang.github.io/jq/). | ||
|
||
```sh | ||
PASSWORD="INSERT PASSWORD HERE" | ||
PASSWORD='INSERT PASSWORD HERE' | ||
# Change this to a real email if you'd like to log into the tenant | ||
TENANT_EMAIL="[email protected]" | ||
CONTROL_PLANE_STACK_NAME="ControlPlaneStack" | ||
|