Fixup StackReference Architecture example
Fixes:
MODIFY
aws-stackreference-architecture/README.md
aws-stackreference-architecture/README.md
@@ -87,13 +87,13 @@ between the system:
e.g. `myUsername/multicloud/dev`:
```bash
- pulumi config set networkingStack stack72/networking-stack/dev
+ pulumi config set networkingStack stack72/networking-layer/dev
```
If you wish to specify an initial database name in the RDS Instance, then you can do so by setting the following:
```bash
- pulumi config set dbName myDatabseName
+ pulumi config set dbName myDatbaseName
```
1. Deploy the database stack

MODIFY
aws-stackreference-architecture/networking/src/index.ts
aws-stackreference-architecture/networking/src/index.ts
@@ -2,7 +2,6 @@ import { Config, getStack } from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import {Vpc} from "./vpc";
-async function main() {
const config = new Config();
const azCount = config.getNumber("azCount") || 2;
@@ -13,7 +12,7 @@ async function main() {
};
const availabilityZones = aws.getAvailabilityZones({
state: "available",
- }, { async: true });
+});
const appVpc = new Vpc("app-vpc", {
description: `${baseTags.ManagedBy} App VPC`,
@@ -53,18 +52,13 @@ async function main() {
peeredVpc: appVpc,
});
- return {
- appVpcId: appVpc.vpcId(),
- appVpcPrivateSubnetIds: appVpc.privateSubnetIds(),
- appVpcPublicSubnetIds: appVpc.publicSubnetIds(),
-
- dataVpcId: dataVpc.vpcId(),
- dataVpcPrivateSubnetIds: dataVpc.privateSubnetIds(),
- dataVpcPublicSubnetIds: dataVpc.publicSubnetIds(),
+export const appVpcId = appVpc.vpcId();
+export const appVpcPrivateSubnetIds = appVpc.privateSubnetIds();
+export const appVpcPublicSubnetIds = appVpc.publicSubnetIds();
- peeredSecurityGroupId: peeredSg,
- };
-}
+export const dataVpcId = dataVpc.vpcId();
+export const dataVpcPrivateSubnetIds = dataVpc.privateSubnetIds();
+export const dataVpcPublicSubnetIds = dataVpc.publicSubnetIds();
-module.exports = main();
+export const peeredSecurityGroupId = peeredSg;

Fixup StackReference Architecture example (#547)

Fixes: #544