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

Refactoring Account management to use a step function #394

Merged
merged 22 commits into from
Nov 22, 2021

Conversation

StewartW
Copy link
Contributor

Issue #, if available:

Description of changes:
Removed main.py from the provisioner dir and the buildspec.

Now account files are synced to a new bucket, which is farmed out to a step function per account.
Step function then decided if it needs to create the account / enable enterprise support . Then will Update OU, Tags and alias as necessary before getting all available regions and deleting the default vpc in those regions if configured.

Roughly looks like this:
Account Management Proposal

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

@StewartW StewartW force-pushed the refactor/account-processing branch from bd999ae to 07ddd38 Compare October 15, 2021 09:52
@StewartW StewartW marked this pull request as ready for review October 18, 2021 10:06
@StewartW StewartW force-pushed the refactor/account-processing branch from 81466a3 to 5192ae7 Compare October 19, 2021 12:30
Linting, tests and reducing IAM role scope

Enabling tracing

Refactoring some more
@StewartW StewartW force-pushed the refactor/account-processing branch 3 times, most recently from 80ee274 to a9696e9 Compare October 22, 2021 12:15
@StewartW StewartW force-pushed the refactor/account-processing branch from a9696e9 to 1c7f6d6 Compare October 22, 2021 15:35
Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

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

Wow, impressive refactoring, thank you!

I have left some comments on the changes made.
Feel free to ping me if I can help out / explain any of these.

src/account_processing.yml Outdated Show resolved Hide resolved
src/account_processing.yml Outdated Show resolved Hide resolved
src/account_processing.yml Outdated Show resolved Hide resolved
src/account_processing.yml Outdated Show resolved Hide resolved
src/account_processing.yml Outdated Show resolved Hide resolved
src/lambda_codebase/account_processing/requirements.txt Outdated Show resolved Hide resolved
@StewartW StewartW force-pushed the refactor/account-processing branch from 7362272 to 05132e6 Compare November 17, 2021 09:13
…-deployment-framework into refactor/account-processing
@StewartW StewartW force-pushed the refactor/account-processing branch from 05132e6 to f924ce0 Compare November 17, 2021 11:37
Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for refactoring this!

@sbkok sbkok requested a review from deltagarrett November 18, 2021 17:08
Copy link

@krisnielander krisnielander left a comment

Choose a reason for hiding this comment

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

LGTM

@sbkok sbkok merged commit e83c2f9 into awslabs:master Nov 22, 2021
@sbkok sbkok added this to the v3.2.0 milestone Nov 22, 2021
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