aws-deployment-framework
aws-deployment-framework copied to clipboard
ADF Deployment Bootstrap does not send Slack notifications
Hi all
We are experiencing an issue with sending Slack notifications during the run of aws-deployment-framework-bootstrap-pipeline. We have configured adfconfig.yml to send notifications into our Slack channel but nothing happens. We do not see any errors in the pipeline run.
adfconfig.yml configuration:
24 | main-notification-endpoint: 25 | - type: slack 26 | target: org-aws-adf
We have also configured Secrets manager for the target above as described in the documentation but nothing happens.
From the build logs: `
[Container] 2021/01/27 09:32:44 Running command sam build -t adf-bootstrap/deployment/global.yml 65 | 66 | SAM CLI now collects telemetry to better understand customer needs. 67 | 68 | You can OPT OUT and disable telemetry collection by setting the 69 | environment variable SAM_CLI_TELEMETRY=0 in your shell. 70 | Thanks for your help! 71 | 72 | Learn More: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-telemetry.html 73 | 74 | Building resource 'SendSlackNotification' 75 | Running PythonPipBuilder:ResolveDependencies 76 | Running PythonPipBuilder:CopySource 77 | Building resource 'EnableCrossAccountAccess' 78 | Running PythonPipBuilder:ResolveDependencies 79 | Running PythonPipBuilder:CopySource 80 | Building resource 'CheckPipelineStatus' 81 | Running PythonPipBuilder:ResolveDependencies 82 | Running PythonPipBuilder:CopySource 83 | Building resource 'InitialCommitHandler' 84 | Running PythonPipBuilder:ResolveDependencies 85 | Running PythonPipBuilder:CopySource
` So as you can see the Slack resource is referenced. But I do not see this resource being created in our master account where the bootstrap pipeline is present.
I have to clarify that Slack notifications resources within our deployment account is there and notifications are working fine. The problem is only with bootstrap pipeline within master account.
Can you explain me how is this supposed to work and what is the correct configuration here? if you need more information then let me know.
Thank you
Hi @lpipiska,
Thanks for reaching out. The aws-deployment-framework-bootstrap pipeline is not generated like the deployment pipelines. This specific pipeline is static and does not support configuration options as defined in the adfconfig.yml file at this moment unfortunately.
We would be open to accept this change as a pull request if you have time to implement it. If you need support or guidance where to start we would be happy to provide that.
Best regards, Simon
Hi @sbkok
The admin part of the ADF documentation under adfconfig / config says this: main-notification-endpoint is the main notification endpoint for the bootstrapping pipeline and deployment account pipeline creation pipeline. This value should be a valid email address or slack channel that will receive updates about the status (Success/Failure) of CodePipeline that is associated with bootstrapping and creation/updating of all pipelines throughout your organization.
I find it strange it is not supported when it is mentioned in the docs.
Best Lubo
Hi @lpipiska,
Apologies, I wasn't aware about that feature. I could not find the supporting code for it yet. I will take a closer look and report back when I know more.
Best regards, Simon