Chalice: Bug report: Api Gateway Resource policy configuration added in v1.10 broken

Created on 23 Aug 2019  路  2Comments  路  Source: aws/chalice

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

bug

Most helpful comment

Just merged the pull request. The fix will be available in the next release. Thanks again for the report and PR!

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings