quota-monitor-for-aws
quota-monitor-for-aws copied to clipboard
Slack Notification - Disable - CFN Fails Validation
Instructions Incorrect (https://docs.aws.amazon.com/solutions/latest/limit-monitor/deployment.html#step1)
In the section about Slack Notification Levels:
Choose the status event level(s) that will trigger Slack notifications. For example, “WARN”, “ERROR”. Note that the format is double quotation marks and comma separated (for multiple values). Note Leave this parameter blank if you do not want to receive Slack notifications. Note that the Slack notification components will not be deployed.
However if left Blank, the Cloudformation template fails validation, citing SlackRole Dependency check
@jchinyou Hello! Did you leave all 1,2 and 3 parameters blank or only 1?
- Slack Notification Level
- Slack Hook URL Key Name
- Slack Channel Key Name
@rakshb Hello!
Confirmed! I left all Slack inputs blank. The CFN then fails on dependency.
@jchinyou Thank you for reporting this. Looks like if you leave "Slack Notification Level" parameter blank and remove the default values of "WARN","ERROR", it throws this error. We will fix this issue in a future release, to make sure that all 3 Slack parameters can be left blank if the option is not needed by customers
Same problem here.
I've applied successfully this temporary workaround:
- Remove the row #426 (""Condition": "SlackTrue""), used for "SlackNotifierRole" resource
@@ -422,8 +422,7 @@
}
]
}
- },
- "Condition": "SlackTrue"
+ }
},
"SlackNotifierRoleDefaultPolicy3F0FB2C2": {
"Type": "AWS::IAM::Policy",
Hi,
Can also add "Condition": "SlackTrue"
for SlackNotifierRoleDefaultPolicy3F0FB2C2
ressource to solve the issue.
updated in v6.0.0