Skip to content

cloudlesslabs/pulumix

Repository files navigation

PULUMIX - PULUMI RECIPES

npm i @cloudlessopenlabs/pulumix

This NodeJS package exposes a series of wrappers around the Pulumi APIs to help facilitate the provisionning of common Cloud resources. Examples:

AWS Security Group incl. its rules

const { aws: { SecurityGroup } } = require('@cloudlessopenlabs/pulumix')

const sg = new SecurityGroup({
	name: `my-special-sg`, 
	description: `Controls something special.`, 
	vpcId: 'vpc-1234', 
	egress: [{  
		protocol: '-1',  
		fromPort:0, toPort:65535, cidrBlocks: ['0.0.0.0/0'],  
		ipv6CidrBlocks: ['::/0'],  
		description:'Allow all traffic' 
	}], 
	tags: {
		Project: 'demo'
	}
})

console.log(sg)
// {
// 	id: Output<String>,
// 	arn: : Output<String>,
// 	name: : Output<String>,
// 	description: : Output<String>,
// 	rules: : Output<[SecurityGroupRule]>
// }

The full documentation for this package is located in the project's wiki: https://github.com/cloudlesslabs/pulumix/wiki/

This wiki contains the following sections: