aws-deployment-framework
aws-deployment-framework copied to clipboard
Set account contacts from ADF
After reading this blog. I thought it would be a nice addition to ADF to manage the contacts from the adf-accounts configuration files.
The configuration looks something like this:
accounts:
- account_full_name: company-prod-1
organizational_unit_path: /business-unit1/prod
email: [email protected]
allow_billing: False
delete_default_vpc: True
alias: prod-company-1
tags:
- created_by: adf
- environment: prod
- costcenter: 123
Now I foresee three use cases, either you set all accounts to the same default account contacts. Or you have specific persons for specific accounts. Or a combination of those two.
Therefor the default contacts could be defined in the adfconfig.yml file. And the account specific once like this:
accounts:
- account_full_name: company-prod-1
organizational_unit_path: /business-unit1/prod
email: [email protected]
allow_billing: False
delete_default_vpc: True
alias: prod-company-1
contacts:
billing:
name: Mary Major
title: Billing Contact"
email-address: [email protected]
phone-number: +1(555)555-5555"
operations:
name: Mary Major
title: operations Contact"
email-address: [email protected]
phone-number: +1(555)555-5555"
security:
name: Mary Major
title: Security Contact"
email-address: [email protected]
phone-number: +1(555)555-5555"
tags:
- created_by: adf
- environment: prod
- costcenter: 123
When the contact details are not given and they are defined in adfconfig.yml it should fallback to those. If no contact information is given at all it should ignore this step.
When the contact details are changed it needs to update them correctly. If we can agree on a how the configuration should look like and the behaviour I can give it a shot to start an implementation.