Created
January 22, 2024 03:24
-
-
Save mrpackethead/2ff650d9c3c86b2b9a7a47a9e50b17c3 to your computer and use it in GitHub Desktop.
main.ts
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
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