Skip to content

Instantly share code, notes, and snippets.

@mrpackethead
Created January 22, 2024 03:24
Show Gist options
  • Select an option

  • Save mrpackethead/2ff650d9c3c86b2b9a7a47a9e50b17c3 to your computer and use it in GitHub Desktop.

Select an option

Save mrpackethead/2ff650d9c3c86b2b9a7a47a9e50b17c3 to your computer and use it in GitHub Desktop.

Revisions

  1. mrpackethead created this gist Jan 22, 2024.
    32 changes: 32 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    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();