Parameter store - SoftupTechnologies/infrastructure-components GitHub Wiki

Path: /lib/parameter-store/index.ts

Exports: ParameterStore

Required construct packages: @aws-cdk/aws-ssm

Creates a construct that stores key values in AWS Systems Manager Parameter store.

Usage

import * as cdk from '@aws-cdk/core';
import { ParameterStore } from './parameter-store';

export class ServerlessInfrastructureCdkStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props: StackProps) {
    super(scope, id);

    const stackProps = new ParameterStore(this, 'SomeDataInSSMPS', {
      parameterName: 'StackProps',
      value: {
        ...props,
      }
    });
  }
}

Construct props

Name Type Required Default Description
parameterName string true undefined Parameter name.
value string | json { projectName, clientName, env } true undefined Parameter value.

Properties

Name Type Description
parameter ssm.StringParameter Created parameter instance.