Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure policy resource name when pushing REST APIs #7192

Merged
merged 5 commits into from
Apr 29, 2021
Merged

fix: ensure policy resource name when pushing REST APIs #7192

merged 5 commits into from
Apr 29, 2021

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Apr 27, 2021

Description of changes

It is possible that older REST APIs have never been updated to include the policyResourceName field on paths. This commit ensures that the field is present.

Issue #, if available

#7190
#7201

Checklist

  • PR description included
  • yarn test passes

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

It is possible that older REST APIs have never been updated to
include the policyResourceName field on paths. This commit
ensures that the field is present.

Refs: #7190
@cjihrig cjihrig requested a review from a team as a code owner April 27, 2021 19:30
When removing the auth and unauth roles from REST APIs, the
CFN template and the parameters.json file should be processed
separately in case they have gotten out of sync. Otherwise, the
generated root stack is likely to have errors.
This commit moves the check for AdminQueries from
consolidateApiGatewayPolicies() to loadApiWithPrivacyParams(),
as the latter is also called from push-resources.ts.
@aws-amplify aws-amplify deleted a comment from lgtm-com bot Apr 28, 2021
@attilah
Copy link
Contributor

attilah commented Apr 29, 2021

Merging without mock test passing as it is a CCI issue and test has unrelated fixes.

@attilah attilah merged commit fc77006 into aws-amplify:master Apr 29, 2021
@cjihrig cjihrig deleted the ugh branch April 29, 2021 19:29
@siegerts siegerts added the referenced-in-release Issues referenced in a published release changelog label May 4, 2021
@siegerts
Copy link
Contributor

siegerts commented May 4, 2021

👋 Hi, this issue was referenced in the v4.50.2 release!

Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v4.50.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referenced-in-release Issues referenced in a published release changelog
Projects
None yet
4 participants