@pepperize/cdk-ssm-parameters-cross-region
v0.0.444
Published
Store, read and lookup AWS SSM Parameters cross-region
Downloads
3,249
Readme
CDK SSM Parameters cross-region
Store, read and lookup AWS SSM Parameters cross-region
Currently, only supports StringParameter except simple name. Implements
aws_ssm.IParameter
and can be used asaws_ssm.StringParameter
replacement.
Install
TypeScript
npm install @pepperize/cdk-ssm-parameters-cross-region
or
yarn add @pepperize/cdk-ssm-parameters-cross-region
Python
pip install pepperize.cdk-ssm-parameters-cross-region
C# / .Net
dotnet add package Pepperize.CDK.SsmParametersCrossRegion
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-ssm-parameters-cross-region</artifactId>
<version>${cdkSsmParametersCrossRegion.version}</version>
</dependency>
Usage
Store AWS SSM Parameter cross-region
new StringParameter(scope, "PutParameter", {
region: "eu-central-1",
parameterName: "/path/name/example",
stringValue: "Say hello from another region",
});
See StringParameter
Read AWS SSM Parameter cross-region
StringParameter.fromStringParameterName(scope, "GetParameter", "eu-central-1", "/path/name/example");
See StringParameter.fromStringParameterName
Lookup AWS SSM Parameter cross-region
StringParameter.valueFromLookup(scope, "eu-central-1", "/path/name/example");