Skip to content

Conversation

praneetap
Copy link
Contributor

@praneetap praneetap commented Oct 7, 2019

Issue #, if available:
A bug was discovered in the latest release v1.15
Resource policies generate a resource path using the logical id instead of the api id.
Description of changes:
Changed the resource path generation for the resource policy to get the correct path.
Since you cannot reference a resource within itself, we set the resource path to execute-api:/stage/path/method and api gw resolves this to the full path to the resource.
Description of how you validated changes:
Applied the resource policy on api gw console and verified that it gets resolved to the full path.
Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected
  • Add/update example to examples/2016-10-31

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@praneetap praneetap merged commit 5844286 into aws:release/v1.15.1 Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants