AWS CDK not having a way to create secure parameter store, and it recommends secret manager, which is costly. This construct provides a way to create secure parameter store using CDK Custom Resource
Similar to how other CDK constructs are used
new SecureParameterStore(stack, 'MySecureParameterStore', {
name: 'ParameterName',
value: 'Parameter Value',
});This construt creates a Lambda backed Custom Resource, the lambda is using aws-sdk to create and delete parameter store, whenever Custom Resource is created and destroyed
For more info refer aws docs
npx projen build
yarn dev:deploy
npx cdk destroy --app='./lib/integ.default.js'
import { SecureParameterStore } from 'cdk-secure-parameter-store'
new SecureParameterStore(scope: Construct, id: string, props: ISecureParameterStoreProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ISecureParameterStoreProps |
No description. |
- Type: constructs.Construct
- Type: string
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
public toString(): stringReturns a string representation of this construct.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
import { SecureParameterStore } from 'cdk-secure-parameter-store'
SecureParameterStore.isConstruct(x: any)Checks if x is a construct.
- Type: any
Any object.
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;- Type: constructs.Node
The tree node.
- Implemented By: ISecureParameterStoreProps
| Name | Type | Description |
|---|---|---|
name |
string |
No description. |
value |
string |
No description. |
resourceNamesPrefix |
string |
No description. |
public readonly name: string;- Type: string
public readonly value: string;- Type: string
public readonly resourceNamesPrefix: string;- Type: string