Hi all,
I ran into an issue trying to use the new API Gateway Resource Policy, specifically setting the following config keys:
"api_gateway_endpoint_type": "PRIVATE",
"api_gateway_policy_file": "custom_policy.json"
In this workflow, upon running chalice package I received the error:
TypeError: Object of type Placeholder is not JSON serializable
I traced this back to an issue where the policy is never actually read out of the file, and a unit test that was missing an assert.
I've made changes and will create a pull request and am attaching it to this issue. Either way, I believe the feature was prematurely released, and should be patched as soon as possible.
All the best,
Yehuda
I can confirm this bug. Working on reviewing the PR now.
Just merged the pull request. The fix will be available in the next release. Thanks again for the report and PR!
Most helpful comment
Just merged the pull request. The fix will be available in the next release. Thanks again for the report and PR!