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

Duplicate root account email addresses can be generated #199

Open
sengi opened this issue Feb 16, 2022 · 0 comments
Open

Duplicate root account email addresses can be generated #199

sengi opened this issue Feb 16, 2022 · 0 comments

Comments

@sengi
Copy link

sengi commented Feb 16, 2022

For example, in alphagov/aws-billing-account#363 and alphagov/aws-billing-account#364 co-special-advisors-portal-production and co-special-advisors-portal-preproduction both got automatically shortened to aws-root-accounts+co-sp-ad-po-pr. Terraform then fails to create the second of the two accounts because its root account email address clashes with the first.

One fix that springs to mind is to have the re-request-an-aws-account bot search the list of existing names and replace the last character with a 1, or if that's taken then a 2, etc. to ensure uniqueness.

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

No branches or pull requests

1 participant