aws-deployment-framework icon indicating copy to clipboard operation
aws-deployment-framework copied to clipboard

feat to enable multiple SCPs

Open itsnotsagar opened this issue 1 year ago • 2 comments

Why?

To support more than one SCP per OU

*Issue #724

What?

organizations.py organisation_policy.py

Description of changes: organizations.py

  • function create_policy() to handle the updated logic
  • function describe_policy_id_for_target() to handle the updated logic

organisation_policy.py

  • _find_all() renamed to _find_all_paths() with updated filter
  • clubbing _trim_scp_file_name() and _trim_tagging_policy_file_name() into one single function _trim_policy_file_name() with updated logic
  • new function return_policy_name() added which returns the name of the SCP to be created
  • updated clean_and_remove_policy_attachment() function to handle deletion of the newly added policy
  • updated apply() function to handle exceptions and updated logic

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

itsnotsagar avatar May 22 '24 07:05 itsnotsagar