Giter Club home page Giter Club logo

cdk-sample-batch's Introduction

SampleBatchデプロイ用CDK

注意:これは正常に動作していたCDKから必要な情報をマスクしたもののため、動作確認は各自でお願いします。

構成は

  • CloudWatch (指定の時刻に実行)
  • ECS+Fargate

特徴として既存のVPCを設定するため、VPC内に設置されているDBにアクセスできます。

各環境にデプロイするために cdk-deploy.sh を作成しました。
使い方として cdk-deploy.sh env_vars/xxxcdk synth が実行され、 template.yml が生成されます(デプロイはされません、CDKが正しいかテストに使用してください)。
デプロイする時は cdk-deploy.sh env_vars/xxx deploy を実行してください。

新しくデプロイする環境を追加する際は env_vars 配下に環境変数を追加してください。
デプロイ中に使用される変数関連は cdk.json にまとまっているので、既に設定されている環境(例:develop)からコピーして環境毎の値をセットしてください。
オブジェクトにセットした名(例:開発環境の場合 develop )は環境変数の STAGE と一致している必要がありますので注意してください。

以下CDKのREADMEの原文ママ

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • 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

cdk-sample-batch's People

Contributors

from-unknown 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.