Open KarBroden opened 3 months ago
Hi @KarBroden,
This seems to be a bug in the validation logic. It should not allow you to install ADF without it.
When you install ADF, you are required to specify the MainNotificationEndpoint
as written in the parameters description.
Not setting the notification endpoint is unsupported, so this may cause issues elsewhere.
Therefore I would recommend that you update the adfconfig.yml
and include this configuration:
# ...
config:
main-notification-endpoint:
- type: email
target: your-email-address@goes.here
Best regards, Simon
Thanks for looking into this. The installation guide mentions this configuration parameter as optional. If it's not we should change the documentation as well.
Is there an existing issue for this?
Describe the bug
I just setup a new management account with Control Tower configured.
When installing ADF v.4.0.0 in this account with the following flags using a Cloud9 environment
{"CrossAccountAccessRoleName": "AWSControlTowerExecution", "MainNotificationEndpoint": "", "DeploymentAccountName": "", "DeploymentAccountEmailAddress": "", "DeploymentAccountAlias": "", "DeploymentAccountId": "ID-OF-DEPLOY-ACC", "DeploymentAccountMainRegion": "eu-west-1", "DeploymentAccountTargetRegions": "us-east-1", "ProtectedOUs": "", "LogLevel": "INFO", "AllowBootstrappingOfManagementAccount": "No", "GrantOrgWidePrivilegedBootstrapAccessUntil": "1900-12-31T23:59:59Z"}
the installation successfully completes but the aws-deployment-framework-bootstrap-pipeline fails with
I assume it's attempting to send a notification but is unable to do so as I set "MainNotificationEndpoint": "" I would like some help in figuring out if the notification error is the "real" error or if this error is just hiding some other underlying issue.
Expected Behavior
If I set "MainNotificationEndpoint": "" it won't try to run the notification part of the code
Current Behavior
Setting "MainNotificationEndpoint": "" results in an error
Steps To Reproduce
{"CrossAccountAccessRoleName": "AWSControlTowerExecution", "MainNotificationEndpoint": "", "DeploymentAccountName": "", "DeploymentAccountEmailAddress": "", "DeploymentAccountAlias": "", "DeploymentAccountId": "ID-OF-DEPLOY-ACC", "DeploymentAccountMainRegion": "eu-west-1", "DeploymentAccountTargetRegions": "us-east-1", "ProtectedOUs": "", "LogLevel": "INFO", "AllowBootstrappingOfManagementAccount": "No", "GrantOrgWidePrivilegedBootstrapAccessUntil": "1900-12-31T23:59:59Z"}
Possible Solution
Workaround is to modify the adfconfig.yml in codecommit and add a notification endpoint. Once added the pipeline will succeed.
Additional Information/Context
No response
ADF Version
v4.0.0
Contributing a fix?