Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

51 lines (31 loc) · 1.21 KB

AWS CDK re:Invent 2018 Session

The AWS Cloud Development Kit (CDK) is a software development framework for defining cloud infrastructure in code.

This repo contains the demo code from the AWS re:Invent 2018 DEV372: Infrastructure is Code session.

Prerequisites

  1. Node.js
  2. CDK Toolkit: npm i -g aws-cdk

Setup

Clone the repository and run:

$ cd hello-cdk
$ npm install

Twitter Credentials

Follow the instructions here to obtain Twitter credentials and store them in AWS SecretsManager.

Update the code to use the ARN of the secret you stored.

Build

To build the Typescript code run:

$ npm run build

Or, to continuously build in the background:

$ npm run watch

Deploy

You'll need to setup AWS credentials in your environment (e.g. via aws configure), and then execute:

$ cdk deploy

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.