Skip to content

Commit e84bbb4

Browse files
authoredSep 13, 2024··
feat: sa-384 latest notifications including cost anomaly parsing/rendering (#29)
1 parent 54dd57a commit e84bbb4

File tree

5 files changed

+30
-10
lines changed

5 files changed

+30
-10
lines changed
 

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The `terraform-docs` utility is used to generate this README. Follow the below s
5555

5656
| Name | Source | Version |
5757
|------|--------|---------|
58-
| <a name="module_notifications"></a> [notifications](#module\_notifications) | appvia/notifications/aws | 1.0.3 |
58+
| <a name="module_notifications"></a> [notifications](#module\_notifications) | appvia/notifications/aws | 1.0.4 |
5959

6060
## Resources
6161

@@ -74,6 +74,8 @@ The `terraform-docs` utility is used to generate this README. Follow the below s
7474
| <a name="input_accounts_id_to_name"></a> [accounts\_id\_to\_name](#input\_accounts\_id\_to\_name) | A mapping of account id and account name - used by notification lamdba to map an account ID to a human readable name | `map(string)` | `null` | no |
7575
| <a name="input_enable_notification_creation"></a> [enable\_notification\_creation](#input\_enable\_notification\_creation) | Indicates whether to create a notification lambda stack, default is true, but useful to toggle if using existing resources | `bool` | `true` | no |
7676
| <a name="input_enable_sns_topic_creation"></a> [enable\_sns\_topic\_creation](#input\_enable\_sns\_topic\_creation) | Indicates whether to create an SNS topic within this module | `bool` | `true` | no |
77+
| <a name="input_identity_center_role"></a> [identity\_center\_role](#input\_identity\_center\_role) | The name of the role to use when redirecting through Identity Center | `string` | `null` | no |
78+
| <a name="input_identity_center_start_url"></a> [identity\_center\_start\_url](#input\_identity\_center\_start\_url) | The start URL of your Identity Center instance | `string` | `null` | no |
7779
| <a name="input_sns_topic_arn"></a> [sns\_topic\_arn](#input\_sns\_topic\_arn) | The ARN of an existing SNS topic for notifications | `string` | `null` | no |
7880
| <a name="input_sns_topic_name"></a> [sns\_topic\_name](#input\_sns\_topic\_name) | The name of an existing or new SNS topic for notifications | `string` | `"cost-anomaly-notifications"` | no |
7981

‎examples/basic/main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ module "cost_anomaly_detection" {
8585
accounts_id_to_name = {
8686
"1234567890" = "mgmt"
8787
}
88+
identity_center_start_url = null
89+
identity_center_role = null
8890
}

‎examples/existing_sns/main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ module "cost_anomaly_detection" {
6767
accounts_id_to_name = {
6868
"1234567890" = "mgmt"
6969
}
70+
identity_center_start_url = null
71+
identity_center_role = null
7072
}

‎main.tf

+11-9
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
module "notifications" {
44
count = var.enable_notification_creation ? 1 : 0
55
source = "appvia/notifications/aws"
6-
version = "1.0.3"
6+
version = "1.0.4"
77

8-
allowed_aws_services = ["budgets.amazonaws.com", "costalerts.amazonaws.com", "lambda.amazonaws.com"]
9-
create_sns_topic = local.enable_sns_topic_creation
10-
email = local.email
11-
enable_slack = local.enable_slack
12-
slack = local.slack
13-
sns_topic_name = var.sns_topic_name
14-
tags = var.tags
15-
accounts_id_to_name = var.accounts_id_to_name
8+
allowed_aws_services = ["budgets.amazonaws.com", "costalerts.amazonaws.com", "lambda.amazonaws.com"]
9+
create_sns_topic = local.enable_sns_topic_creation
10+
email = local.email
11+
enable_slack = local.enable_slack
12+
slack = local.slack
13+
sns_topic_name = var.sns_topic_name
14+
tags = var.tags
15+
accounts_id_to_name = var.accounts_id_to_name
16+
identity_center_start_url = var.identity_center_start_url
17+
identity_center_role = var.identity_center_role
1618
}
1719

1820
## Provision the cost anomaly detection for services

‎variables.tf

+12
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,15 @@ variable "accounts_id_to_name" {
7272
type = map(string)
7373
default = null
7474
}
75+
76+
variable "identity_center_start_url" {
77+
description = "The start URL of your Identity Center instance"
78+
type = string
79+
default = null
80+
}
81+
82+
variable "identity_center_role" {
83+
description = "The name of the role to use when redirecting through Identity Center"
84+
type = string
85+
default = null
86+
}

0 commit comments

Comments
 (0)
Please sign in to comment.