Skip to content

Conversation

theBaffo
Copy link
Contributor

@theBaffo theBaffo commented Feb 16, 2021

Issue #, if available: #1930

Description of changes: Add "Route53ChangeResourceRecordSetsPolicy" policy

Description of how you validated changes:

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected

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

@theBaffo
Copy link
Contributor Author

Not sure why, but I got this error "UnboundLocalError: local variable 'patching' referenced before assignment", that's why the AppVeyor build failed.

@sriram-mv
Copy link
Contributor

This looks well formed, Need to investigate on the appveyor failure.

@hawflau
Copy link
Contributor

hawflau commented Feb 23, 2021

Hey @theBaffo it looks like you've defined HostedZoneId in policy_templates.json, but used hostedZoneId (lowercase h) in the tests. Can you update all hostedZoneId to HostedZoneId in the test input and outputs? It will pass the test then.

You can also run make pr before you submit the PR. It will run unit tests in your local machine.

@theBaffo
Copy link
Contributor Author

Hey @theBaffo it looks like you've defined HostedZoneId in policy_templates.json, but used hostedZoneId (lowercase h) in the tests. Can you update all hostedZoneId to HostedZoneId in the test input and outputs? It will pass the test then.

You can also run make pr before you submit the PR. It will run unit tests in your local machine.

Hi @hawflau!

Yes, my bad! I updated hostedZoneId to HostedZoneId as requested, and update the PR. It should be good to go now!

Copy link
Contributor

@hawflau hawflau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@hoffa hoffa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙌 (Applied description nit above)

@hawflau hawflau merged commit d08d77b into aws:develop Mar 1, 2021
mgrandis pushed a commit to mgrandis/serverless-application-model that referenced this pull request Mar 2, 2021
…s#1929)

* feat(policy-templates): add Route53ChangeResourceRecordSetsPolicy

* feat(policy-templates): replace 'hostedZoneId' with 'HostedZoneId'

* feat(policy-templates): remove both Region and AccountId

* Update samtranslator/policy_templates_data/policy_templates.json

Co-authored-by: Chris Rehn <[email protected]>
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.

4 participants