@collaborne/custom-cloudformation-resources
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -26,2 +26,9 @@ "use strict"; | ||
}); | ||
if (responseBody.length >= 4096) { | ||
// Warn, but proceed. The problem is that at this point we cannot do anything anymore -- CF will fail, and will do | ||
// rollbacks as needed. | ||
// We do log the complete body here, so that the operator/developer hopefully sees what can be shortened. | ||
// See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-responses.html#crpg-ref-responses-fields | ||
console.warn(`Response body length of ${responseBody.length} bytes exceeds CloudFormation limit of 4KiB: ${responseBody}`); | ||
} | ||
const options = { | ||
@@ -28,0 +35,0 @@ method: 'PUT', |
{ | ||
"name": "@collaborne/custom-cloudformation-resources", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Custom CloudFormation resources", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -60,2 +60,11 @@ // Based on the cfn-response sources published by AWS at | ||
}); | ||
if (responseBody.length >= 4096) { | ||
// Warn, but proceed. The problem is that at this point we cannot do anything anymore -- CF will fail, and will do | ||
// rollbacks as needed. | ||
// We do log the complete body here, so that the operator/developer hopefully sees what can be shortened. | ||
// See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-responses.html#crpg-ref-responses-fields | ||
console.warn( | ||
`Response body length of ${responseBody.length} bytes exceeds CloudFormation limit of 4KiB: ${responseBody}`, | ||
); | ||
} | ||
@@ -62,0 +71,0 @@ const options = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164483
1970