Skip to content

Commit

Permalink
README.md sample error fix (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Hoseong-Seo <[email protected]>
  • Loading branch information
Hoseong-Seo and Hoseong-Seo committed Jul 17, 2024
1 parent 51b40d0 commit 86e9d1e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions docs/public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
// });
```

Expand Down Expand Up @@ -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: [],
});
}
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 86e9d1e

Please sign in to comment.