Skip to content

v2.0.0

Choose a tag to compare

@william-kerr william-kerr released this 18 Aug 21:48

Version 2

Version 2 focuses on CRPM's specialized role as a property file manager and allows for better integration with AWS CDK.

  • Converted to using cdk deploy instead of synthesizing a CloudFormation stack JSON file and using the AWS CLI to create a stack with it.

crpm import now inserts code into the bottom of the constructor in an existing CDK app stack class file.

Version 1 (Old) Usage

mkdir app
cd app
crpm ls -a
# Choose a resource to import props for
crpm i compute/ec2/instance
# Edit props in props.yaml
crpm synth compute/ec2/instance
aws cloudformation create-stack \
    --stack-name example \
    --template-body file://compute/ec2/instance/stack.template.json

Version 2 (New) Usage

mkdir app
cd app
cdk init app --language typescript
crpm ls
# Choose a resource to import props for
crpm i compute/ec2/instance
# Edit props in props.yaml in resource (res) directory
cdk deploy