GithubHelp home page GithubHelp logo

oliviergaumond / asea-serverless-sample-application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/asea-serverless-sample-application

0.0 0.0 0.0 1.38 MB

License: MIT No Attribution

JavaScript 13.20% TypeScript 77.32% HTML 1.15% Vue 5.98% Dockerfile 2.35%

asea-serverless-sample-application's Introduction

AWS Secure Environment Accelerator (ASEA) Sample Project

This CDK sample application deploys the following architecture that is compatible with the default configuration of the ASEA.

architecture

Instructions

  1. Update the applicationPrefixName in .\cdk.json

  2. Review the parameters in the bin\aws.ts folder:

new SEASampleAppStack(app, `${Prefix}+Stack`, {
  env: {
    account: "", //The AWS Account ID where this stack will be deployed
    region: "ca-central-1", //Primary region
  },
  vpcId: "vpc-", //The VPC ID
  appSubnetIds: ["subnet-", "subnet-"], //App Subnet IDs (default SEA architecture)
  appSecurityGroup: "sg-", //App Security Group ID (default SEA architecture)
  dataSubnetIds: ["subnet-", "subnet-"], //Data Subnet IDs  (default SEA architecture)
  dataSecurityGroup: "sg-",  //Data Security Group ID  (default SEA architecture)
  tags: {
      "Application": "Sample Demo"
  },
  prefix: Prefix,
  dbName: "", //DBName to be used for initial Aurora PostgreSQL database
  staticSiteBuildPath: "", //Path to the /dist folder of a static site
  apiContainerPath: "" //Path to the folder to the containerized API. The dockerfile should exist at this location.
});
  1. Install project dependencies

This project requires node > 14 and Docker.

    npm install
  1. Build the project
    npm run build
  1. Bootstrap your SEA account
    cdk bootstrap --toolkit-stack-name devcdktoolkit
  1. Deploy the stack
    cdk deploy --toolkit-stack-name devcdktoolkit
  1. CloudFront WAF The CloudFront WAF is not configured as part of this automation because of SCP restrictions on CloudFormation in us-east-1. The CloudFront WAF must be configured in us-east-1

Useful commands

  • npm run build compile typescript to js
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

Accessing the Database

Follow the instructions here for one option to securely access the RDS databse.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.