-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Can deploy stacks to any account for testing * No longer need docker compose
- Loading branch information
Showing
3 changed files
with
31 additions
and
64 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 |
---|---|---|
@@ -1,10 +1,33 @@ | ||
#!/usr/bin/env node | ||
import 'source-map-support/register'; | ||
import * as cdk from 'aws-cdk-lib'; | ||
import PipelineStack from '../lib/pipeline'; | ||
import * as pipeline from '../lib/pipeline'; | ||
import PipelineStack, { ProjectEnvironment, sharedEnvironment } from '../lib/pipeline'; | ||
import ApplicationLayerStack from '../lib/application-layer'; | ||
import PersistenceLayerStack from '../lib/persistence-layer'; | ||
import SharedLayerStack from '../lib/shared-layer'; | ||
|
||
const app = new cdk.App(); | ||
|
||
new PipelineStack(app, 'MealPlannerPipeline', { | ||
env: pipeline.sharedEnvironment, | ||
env: sharedEnvironment, | ||
}); | ||
|
||
const projectEnvironment: ProjectEnvironment = { | ||
account: process.env.AWS_SANDBOX_ACCOUNT || '211125429662', | ||
region: process.env.AWS_SANDBOX_REGION || 'us-east-1', | ||
name: process.env.MEAL_PLANNER_PROJECT_NAME || 'Sandbox', | ||
subdomain: process.env.MEAL_PLANNER_PROJECT_SUBDOMAIN || 'sandbox', | ||
}; | ||
|
||
const devShared = new SharedLayerStack(app, 'DevSharedLayerStack', { | ||
projectEnvironment, | ||
}); | ||
|
||
const devPersistence = new PersistenceLayerStack(app, 'DevPersistenceLayerStack'); | ||
|
||
new ApplicationLayerStack(app, 'DevApplicationLayerStack', { | ||
delegationRole: devShared.hostedZoneDelegate.delegationRole, | ||
parentHostedZoneId: devShared.hostedZone.hostedZoneId, | ||
domain: devShared.hostedZoneDelegate.normalizedDomain, | ||
recipeTable: devPersistence.recipeTable, | ||
}); |
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
This file was deleted.
Oops, something went wrong.