-
Notifications
You must be signed in to change notification settings - Fork 224
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
Feature createorganizationalunit #693
base: master
Are you sure you want to change the base?
Feature createorganizationalunit #693
Conversation
this is the service role for aws-deployment-framework-base-templates this is the codebuild project where the provisioner runs which will be responsible for creating the new OUs
test for new method create_ou test for ammended get_ou_id for/else
refactors while loop to for loop changes logic in for/else to create ou if not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing. A few nits and comments but otherwise a great addition.
The only question I have is if there should be a flag around this functionality to let customers keep the existing behavior.
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
@ethanBaird , can you please fix these linter findings? src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py:
493: Trailing whitespace
497: Trailing whitespace
500: Trailing whitespace
src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/tests/stubs/stub_organizations.py:
Wrong line endings or no final newline |
…ird/aws-deployment-framework into feature-createorganizationalunit
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
...lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/organizations.py
Outdated
Show resolved
Hide resolved
…ird/aws-deployment-framework into feature-createorganizationalunit
this is the service role for aws-deployment-framework-base-templates this is the codebuild project where the provisioner runs which will be responsible for creating the new OUs
test for new method create_ou test for ammended get_ou_id for/else
refactors while loop to for loop changes logic in for/else to create ou if not found
955d3e4
to
8a59606
Compare
Hey @StewartW 👋 Sorry, been a while since I've looked at this, but I have updated the Regarding making this an optional flag in the I understand that we have the SSM Parameter Something like... in self.config = ssm_client.get_parameter('config') Or I see we use the self.config = parameter_store.fetch_parameter('config') Let me know what you think. |
This is the better approach yeah. |
Why?
In our existing Account Creation workflow, we are required to create new organizational units via the Organizations console in our master account. This requires us to sign in to our master account with heightened priveleges for every new account (that has a new path)
We run a multi account strategy so this happens reasonably often.
We'd prefer for this to be automated. This change will programmatically create any new Organizational Units if a new path is defined in the
adf-accounts
configuration.Response to Issue: (#263)
What?
Description of changes:
adf-codebuild-role
in master accountOrganizations.create_ou()
Organizations.get_ou_id()
while
loop tofor
loopBy submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.