@gradientedge/cdk-utils 8.31.0 → 8.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,7 @@ class SsmManager {
76
76
  readStringParameter(id, scope, parameterName) {
77
77
  if (!parameterName || parameterName == '')
78
78
  throw 'Invalid parameter name';
79
- return ssm.StringParameter.fromStringParameterName(scope, `${id}`, parameterName).stringValue;
79
+ return ssm.StringParameter.valueFromLookup(scope, parameterName);
80
80
  }
81
81
  /**
82
82
  * Method to read a string parameter from the parameters store in a given region
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.31.0",
3
+ "version": "8.32.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -35,8 +35,8 @@
35
35
  "lint": "yarn prettify && eslint **/*.ts --max-warnings=0",
36
36
  "fix": "yarn prettify && eslint --fix **/*.ts",
37
37
  "postinstall": "npx lerna run initialise",
38
- "prettier": "npx prettier --check \"**/*.{ts,json,md}\"",
39
- "prettify": "npx prettier --write \"**/*.{ts,json,md}\"",
38
+ "prettier": "npx prettier --cache --check \"**/*.{ts,json,md}\"",
39
+ "prettify": "npx prettier --cache --write \"**/*.{ts,json,md}\"",
40
40
  "test": "rimraf coverage && npx jest --ci --maxWorkers=100%",
41
41
  "update:deps": "ncu -u -x semantic-release",
42
42
  "validate": "yarn prettier && yarn test"
@@ -56,7 +56,7 @@ export class SsmManager {
56
56
  public readStringParameter(id: string, scope: common.CommonConstruct, parameterName: string) {
57
57
  if (!parameterName || parameterName == '') throw 'Invalid parameter name'
58
58
 
59
- return ssm.StringParameter.fromStringParameterName(scope, `${id}`, parameterName).stringValue
59
+ return ssm.StringParameter.valueFromLookup(scope, parameterName)
60
60
  }
61
61
 
62
62
  /**