@cloudadder/cdk-ec2-imagebuilder
v0.0.29
Published
[![build](https://github.com/cloudadder/cdk-ec2-imagebuilder/actions/workflows/build.yml/badge.svg)](https://github.com/cloudadder/cdk-ec2-imagebuilder/actions/workflows/build.yml) [![release](https://github.com/cloudadder/cdk-ec2-imagebuilder/actions/wor
Downloads
94
Readme
cdk-ec2-imagebuilder
Installation and Usage
Creates an EC2 Image Builder using cdk to create EC2 AMIs
npm install @cloudadder/cdk-ec2-imagebuilder
import { ImageBuilder } from '@cloudadder/cdk-ec2-imagebuilder';
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',
amiName: 'test-ami',
subnetId: 'subnet-12345',
securityGroupIds: ['sg-12345'],
version: '1.0.0',
id: 'test-123',
});
}
}
Links
License
Distributed under the Apache-2.0 license.