Repository: cloudcomponents/cdk-constructs (language: python)

Issue:
EdgeFunction uses deprecated uniqueId method
The CDK `node.uniqueId` method is deprecated in favour of `node.addr`. This appears to be causing my tests to fail.


Discussion / hints:

Fix patch:
diff --git a/packages/cdk-blue-green-container-deployment/src/dummy-task-definition.ts b/packages/cdk-blue-green-container-deployment/src/dummy-task-definition.ts
index 064b70d2f..a397a87a3 100644
--- a/packages/cdk-blue-green-container-deployment/src/dummy-task-definition.ts
+++ b/packages/cdk-blue-green-container-deployment/src/dummy-task-definition.ts
@@ -53,7 +53,7 @@ export class DummyTaskDefinition extends Construct implements IDummyTaskDefiniti
       ],
     });
 
-    this.family = props.family || this.node.uniqueId;
+    this.family = props.family || this.node.addr;
     this.containerPort = props.containerPort || 80;
 
     const taskDefinition = new CustomResource(this, 'CustomResource', {
diff --git a/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts b/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts
index 3ae36a324..423c537f6 100644
--- a/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts
+++ b/packages/cdk-lambda-at-edge-pattern/src/edge-function.ts
@@ -35,7 +35,7 @@ export class EdgeFunction extends BaseEdgeConstruct implements ILambdaFunctionAs
   constructor(scope: Construct, id: string, props: EdgeFunctionProps) {
     super(scope, id);
 
-    const { name, parameterName = `/cloudcomponents/edge-lambda/${this.stack.node.uniqueId}/${name}` } = props;
+    const { name, parameterName = `/cloudcomponents/edge-lambda/${this.stack.stackName}/${name}/${this.stack.node.addr}` } = props;
 
     this.edgeRole = props.edgeRole ?? new EdgeRole(this, `${name}Role`);
 
diff --git a/packages/cdk-pull-request-check/src/pull-request-check.ts b/packages/cdk-pull-request-check/src/pull-request-check.ts
index 6a3669f23..dc3863bee 100644
--- a/packages/cdk-pull-request-check/src/pull-request-check.ts
+++ b/packages/cdk-pull-request-check/src/pull-request-check.ts
@@ -129,7 +129,7 @@ export class PullRequestCheck extends Construct {
       });
     }
 
-    const rule = repository.onPullRequestStateChange(`${this.node.uniqueId}Rule`, {
+    const rule = repository.onPullRequestStateChange(`${this.node.addr}Rule`, {
       eventPattern: {
         detail: {
           event: ['pullRequestSourceBranchUpdated', 'pullRequestCreated'],


Test patch:
diff --git a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap
index 613eeea5c..b01e0ac8c 100644
--- a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap
+++ b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap
@@ -710,7 +710,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -726,7 +726,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -755,7 +755,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -781,7 +781,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -797,7 +797,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -826,7 +826,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -862,7 +862,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -888,7 +888,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -904,7 +904,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -923,7 +923,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -939,7 +939,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -968,7 +968,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -994,7 +994,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1010,7 +1010,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1039,7 +1039,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -1899,7 +1899,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1915,7 +1915,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1944,7 +1944,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -1970,7 +1970,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1986,7 +1986,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2015,7 +2015,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2041,7 +2041,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2057,7 +2057,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2086,7 +2086,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2112,7 +2112,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2128,7 +2128,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2157,7 +2157,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2183,7 +2183,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2199,7 +2199,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2228,7 +2228,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
diff --git a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap
index 25af3ff6c..c1d004b79 100644
--- a/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap
+++ b/packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap
@@ -809,7 +809,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -825,7 +825,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -854,7 +854,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -880,7 +880,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -896,7 +896,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -925,7 +925,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -961,7 +961,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -987,7 +987,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1003,7 +1003,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1022,7 +1022,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1038,7 +1038,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1067,7 +1067,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -1093,7 +1093,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1109,7 +1109,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -1138,7 +1138,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2587,7 +2587,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2603,7 +2603,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2632,7 +2632,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/check-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2658,7 +2658,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2674,7 +2674,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2703,7 +2703,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2729,7 +2729,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2745,7 +2745,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2774,7 +2774,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/parse-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2800,7 +2800,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2816,7 +2816,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2845,7 +2845,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/refresh-auth/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -2871,7 +2871,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2887,7 +2887,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -2916,7 +2916,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/sign-out/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
diff --git a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap
index 67431ec6e..1b82fe20c 100644
--- a/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap
+++ b/packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap
@@ -58,7 +58,7 @@ Object {
     "httpheadersStringParameterE8E8A22A": Object {
       "Properties": Object {
         "Description": "Parameter stored for cross region Lambda@Edge",
-        "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+        "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
         "Type": "String",
         "Value": Object {
           "Fn::GetAtt": Array [
@@ -256,7 +256,7 @@ Object {
         "Create": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -272,7 +272,7 @@ Object {
         "Update": Object {
           "action": "getParameter",
           "parameters": Object {
-            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+            "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
           },
           "physicalResourceId": Any<Object>,
           "region": "us-east-1",
@@ -301,7 +301,7 @@ Object {
                     Object {
                       "Ref": "AWS::AccountId",
                     },
-                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers",
+                    ":parameter/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
                   ],
                 ],
               },
@@ -628,7 +628,7 @@ Object {
     "httpheadersStringParameterE8E8A22A": Object {
       "Properties": Object {
         "Description": "Parameter stored for cross region Lambda@Edge",
-        "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers",
+        "Name": "/cloudcomponents/edge-lambda/Dummy/http-headers/c83d99d8def072b82738c0d40222a792527c17f94d",
         "Type": "String",
         "Value": Object {
           "Fn::GetAtt": Array [
diff --git a/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap b/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap
index 4752a77ed..762e2fa7f 100644
--- a/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap
+++ b/packages/cdk-pull-request-check/src/__tests__/__snapshots__/pull-request-check.test.ts.snap
@@ -406,7 +406,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheckRuleC082A997": Object {
+    "Repositoryc850fa9804af799fd22b17c77c562408123712b864Rule01914679": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -884,7 +884,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheckRuleC082A997": Object {
+    "Repositoryc850fa9804af799fd22b17c77c562408123712b864Rule01914679": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -1362,7 +1362,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheckRuleC082A997": Object {
+    "Repositoryc850fa9804af799fd22b17c77c562408123712b864Rule01914679": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -1935,7 +1935,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheckRuleC082A997": Object {
+    "Repositoryc850fa9804af799fd22b17c77c562408123712b864Rule01914679": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -2442,7 +2442,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheckRuleC082A997": Object {
+    "Repositoryc850fa9804af799fd22b17c77c562408123712b864Rule01914679": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -3288,7 +3288,7 @@ Object {
       },
       "Type": "AWS::CodeCommit::Repository",
     },
-    "RepositoryPullRequestCheck1Rule412E8AEF": Object {
+    "Repositoryc817ef960f60dacab43b0cb7d1e0234b329cdaad49Rule4F5F406C": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {
@@ -3343,7 +3343,7 @@ Object {
       },
       "Type": "AWS::Events::Rule",
     },
-    "RepositoryPullRequestCheck2Rule2F0D18A9": Object {
+    "Repositoryc84e1ee00c4f42c641a1cb34226c8d726d6ac2b0b2Rule5365B30B": Object {
       "Properties": Object {
         "EventPattern": Object {
           "detail": Object {