Deploying the multiple apps using the aws cdk
To implement solution in CDK with Approach 1, need to:
- Create the Resource (in the CDK) that needs to be used by other Stack or App such as VPC in this example.
- Provision the SSM Parameter Store using CDK and store the values
- Read values from the Systems Manager Parameter Store, use either :
•
StringParameter.fromStringParameterName
(Reads SSM values at Deployment time – supported by limited AWS Services) •StringParameter.valueFromLookup
methods (Reads SSM values at Synthesis time – supported by limited AWS Services) • If the value is not already cached in cdk.json or passed on the command line, it is retrieved from the current AWS account. • Provide explicit Account and Region information. - Retrieve SSM Value • const versionOfStringToken = ssm.StringParameter.valueForStringParameter(this, 'my-plain-parameter-name', 1); // version 1 https://docs.aws.amazon.com/cdk/v2/guide/get_ssm_value.html