Git Product home page Git Product logo

cdk-experiment's Introduction

cdk-experiment

Build Status

cdk-experiment is an experimental project template based on AWS CDK. This project aims to achieve easy deployment for AWS resources which is generally used for web application.

Features

  • Multi CFn stack support
  • Multi Lambda layer support
  • Multi environment support (dev/stg/prod)
  • etc.

Requirements

Quick Start

⚠️ Named profile is required when calling CFn's API. Named profile can be specified as cli.profile key in cmd/config.yml.

docker-compose build
docker-compose run --rm npm install
./cmd/code.sh build --env development
./cmd/cdk.sh bootstrap
./cmd/cdk.sh deploy --env development --stack 'service1,service2'

Commands

  • ⚠️ --env can be specified as development, staging or production.
  • ⚠️ development is used as default when --env option is not specified.

Checking Code Style

./cmd/code.sh lint

Building the Project

./cmd/code.sh build

Deploying the CDK Toolkit Stack

./cmd/cdk.sh bootstrap

Deploying the CFn Stacks

./cmd/cdk.sh deploy --env development --stack 'service1,service2'

Listing the CFn Stacks

./cmd/cdk.sh list --env development

Printing the CFn Template

./cmd/cdk.sh synth --env development --stack 'service2'

Destroying the CFn Stacks

./cmd/cdk.sh destroy --env development --stack 'service1,service2'

Invoking a Lambda Function

./cmd/sam.sh --fid FUNCTION_IDENTIFIER --stack 'service2' --event 'empty.json'

Note: Function identifier is mentioned in SAM CLI.

cdk-experiment's People

Contributors

42milez avatar

Watchers

James Cloos avatar  avatar

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.