v2.0.0
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.jsonVersion 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