SSM contract
The account baseline writes, the constructs read. Paths are rooted at ssmRootPrefix (default /platform). See ADR 0003 for the full list.
Reading in CDK
ts
const params = PlatformStack.of(this).params;
params.env.dnsZoneId(); // context lookup, needed at synth
params.env.certificateArn(); // context lookup
params.env.alertTopicArn("high"); // deploy-time token
params.account.kmsKeyArn(); // deploy-time tokenReading at runtime
ts
import { platformParams } from "@rpallas/outcrop-runtime";
const busName = await platformParams().env("dev").eventBusName();Adding a key
- Add the path builder to
PlatformParameterPathsinpackages/outcrop/src/params/paths.ts. - Add the writer in the relevant
outcrop-accountmodule. - Add the reader to
PlatformParametersandplatformParams(). - Document it in ADR 0003.