0.0.5 • Published 2 years ago

@cloudadder/cloudadder-cdk-constructs v0.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

build release

cloudadder-cdk-constructs

This is a collection of AWS CDK Constructs to simplify deployments.

Installation and Usage

ImageBuilder

Creates an EC2 Image Builder to create EC2 AMIs

Typescript
npm install @cloudadder/cloudadder-cdk-constructs
import { ImageBuilder } from '@cloudadder/cloudadder-cdk-constructs';
import { App, Stack, StackProps } from 'aws-cdk-lib';
import { Construct } from 'constructs';

export class ImageBuilderStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    new ImageBuilder(this, 'ImageBuilder', {
      componentsFolder: './test/components',
      parentImage: 'arn:aws:imagebuilder:ap-southeast-2:aws:image/amazon-linux-2-x86/x.x.x',
      region: 'ap-southeast-2',
      amiName: 'test-ami',
      subnetId: 'subnet-12345',
      securityGroupIds: ['sg-12345'],
      version: '1.0.0',
      instanceTypes: ['t2.micro'],
    });
  }
}

License

Distributed under the Apache-2.0 license.

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago