Socket
Book a DemoInstallSign in
Socket

@guardian/cdk-ts-starter

Package Overview
Dependencies
Maintainers
36
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/cdk-ts-starter

Starter to help with CDK

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
36
Weekly downloads
 
Created
Source

cdk-ts-starter

Want to use CDK but without lots of files?

yarn init // answer the questions
yarn add @guardian/cdk-ts-starter
touch cdk.ts // then edit to add some stuff
yarn gen-cdk
cat cfn.yaml // see the results

A hello-world cdk.ts file might look like:

import * as core from '@aws-cdk/core';
import * as s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';

export class HelloCdkStack extends core.Stack {
    constructor(scope: core.App, id: string, props?: core.StackProps) {
        super(scope, id, props);

        new s3.Bucket(this, 'MyFirstBucket', {
            versioned: true,
        });
    }
}

See https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html for more info.

FAQs

Package last updated on 04 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts