Skip to content

Instantly share code, notes, and snippets.

@strickvl
Created April 27, 2021 23:14
Show Gist options
  • Save strickvl/7286d7d4fcf02803901d3c61081b4e24 to your computer and use it in GitHub Desktop.
Save strickvl/7286d7d4fcf02803901d3c61081b4e24 to your computer and use it in GitHub Desktop.
this is called by cdk deploy
#!/usr/bin/env node
const cdk = require('@aws-cdk/core');
const { EkkoStack, SharedResources } = require('../lib/deploy-stack');
// A construct which represents the entire CDK app
class EkkoApp extends cdk.App {
constructor() {
super();
const sharedResources = new SharedResources(this, "shared-resources");
const server = new EkkoStack(this, "ekko-server", {
cluster: sharedResources.cluster,
redis: sharedResources.redis,
vpc: sharedResources.vpc,
s3: sharedResources.s3,
});
}
}
new EkkoApp().synth();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment