Skip to content

Commit

Permalink
docs improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
EreminAnton committed Aug 24, 2023
1 parent cf0c58e commit 800613b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions examples/complete_exapmle/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ locals {
"prod-alerts" = "PPOIUYTREWQ"
}
}
# Both SNS topic ARN and email addresses can be used as subscribers, but at least one of them is required
budget_subscriber_email_addresses = [
"[email protected]",
]
prod_sns_topic_arn = [aws_sns_topic.prod_chatbot.arn]
}

# Optional Automatic creation Chatbot IAM role
# Creation of IAM resources for Chatbot
module "chatbot_role" {
source = "./modules/iam"
}
Expand All @@ -24,7 +23,6 @@ module "chatbot_slack_workspace" {

workspace_id = local.slack.workspace_id

# Here can be placed default_iam_role_arn for Chatbot instead of automatic creation
default_iam_role_arn = module.chatbot_role.iam_role_arn

# Mapping of topics to channels
Expand Down Expand Up @@ -68,10 +66,10 @@ module "budget_alerts" {
module "eventbridge_alerts" {
source = "./modules/eventbridge"

# create_guardduty_findings_rule will create eventbridge rule and send all GuardDuty findings to Slack
# It will create eventbridge rule and send all GuardDuty findings to Slack
create_guardduty_findings_rule = true

# create_aws_health_rule will create eventbridge rule and send all AWS Health events to Slack
# Same for AWS Health events
create_aws_health_rule = true

sns_topic_arn = local.prod_sns_topic_arn[0]
Expand Down
2 changes: 1 addition & 1 deletion modules/eventbridge/README.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Event brige alerts:
GuardDuty and AWS health events, both are can be disabled.
GuardDuty and AWS health events.


<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down
3 changes: 2 additions & 1 deletion modules/iam/README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Optional automated Iam for Chatbot
# Iam for Chatbot
Automated creation of IAM resources for AWS Chatbot.


<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Expand Down
2 changes: 1 addition & 1 deletion modules/reservations/README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Reservations utilization alert

Like in budget alerts, required only 2 values:
Required only 2 values:
- `threshold` - percentage of utilization
- `subscriber_sns_topic_arns` - sns topic for chatbot

Expand Down
2 changes: 1 addition & 1 deletion modules/savings_plans/README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Savings plans utilization alert

Like in budget alerts, required only 2 values:
Required only 2 values:
- `threshold` - percentage of utilization
- `subscriber_sns_topic_arns` - sns topic for chatbot

Expand Down

0 comments on commit 800613b

Please sign in to comment.