Skip to content

Instantly share code, notes, and snippets.

@mrpackethead
Created January 22, 2024 03:24
Show Gist options
  • Save mrpackethead/2ff650d9c3c86b2b9a7a47a9e50b17c3 to your computer and use it in GitHub Desktop.
Save mrpackethead/2ff650d9c3c86b2b9a7a47a9e50b17c3 to your computer and use it in GitHub Desktop.
main.ts
import {
App,
Stack,
StackProps,
}
from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { StaticSite } from './staticSite';
export class MyStack extends Stack {
constructor(scope: Construct, id: string, props: StackProps = {}) {
super(scope, id, props);
new StaticSite(this, 'orcawebsite', {
domainName: 'afrazer-orca.depcon.cloud',
sitePath: './site-contents'
})
}
}
// Use the account number of your sandbox
const sandbox = {
account: '366197773329',
region: 'us-east-1'
};
const app = new App();
new MyStack(app, 'orca-website', { env: sandbox });
app.synth();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment