awslabs / aws-bootstrap-kit

Apache License 2.0
105 stars 21 forks source link

feat: Move away from delegated admininstrator #81

Open flochaz opened 2 years ago

flochaz commented 2 years ago

Problem statement

Current implementation rely on making stages account being delegated administrator of the Root account to be able to get the needed info to create the proper pipeline or proper dns setup. This limit the number of account that can be used for DNS due to the limited number of delegatedAdministrator account allowed (4 from the experiment).

Potential solution

Moving to SSM would enable to go around this limitation. This means changing:

Delegation registration to SSM ssm.putParameter:

org.listAccounts and org.listTagsForResource to ssm.getParameter:

ntippie commented 2 years ago

This will also solve two possible issues I've encountered:

aws-bootstrap-kit dependency on context domain_name (sole context reference in package)

Incorrect root account may be resolved for DNS if other invited accounts are within the organization