Skip to content

Commit eb6cad2

Browse files
committed
CCM-14961: Remove eventbus_account_id variable
1 parent 4734c92 commit eb6cad2

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

infrastructure/terraform/components/dl/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ No requirements.
3131
| <a name="input_event_anomaly_band_width"></a> [event\_anomaly\_band\_width](#input\_event\_anomaly\_band\_width) | The width of the anomaly detection band. Higher values (e.g. 4-6) reduce sensitivity and noise, lower values (e.g. 2-3) increase sensitivity. Recommended: 2-4. | `number` | `3` | no |
3232
| <a name="input_event_anomaly_evaluation_periods"></a> [event\_anomaly\_evaluation\_periods](#input\_event\_anomaly\_evaluation\_periods) | Number of evaluation periods for the anomaly alarm. Each period is defined by event\_anomaly\_period. | `number` | `2` | no |
3333
| <a name="input_event_anomaly_period"></a> [event\_anomaly\_period](#input\_event\_anomaly\_period) | The period in seconds over which the specified statistic is applied for anomaly detection. Minimum 300 seconds (5 minutes). Recommended: 300-600. | `number` | `300` | no |
34-
| <a name="input_eventbus_account_id"></a> [eventbus\_account\_id](#input\_eventbus\_account\_id) | The AWS Account ID for the event bus | `string` | n/a | yes |
3534
| <a name="input_eventpub_control_plane_bus_arn"></a> [eventpub\_control\_plane\_bus\_arn](#input\_eventpub\_control\_plane\_bus\_arn) | Event publisher control plane | `string` | n/a | yes |
3635
| <a name="input_eventpub_data_plane_bus_arn"></a> [eventpub\_data\_plane\_bus\_arn](#input\_eventpub\_data\_plane\_bus\_arn) | Event publisher data plane | `string` | n/a | yes |
3736
| <a name="input_force_destroy"></a> [force\_destroy](#input\_force\_destroy) | Flag to force deletion of S3 buckets | `bool` | `false` | no |

infrastructure/terraform/components/dl/cloudwatch_event_bus.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data "aws_iam_policy_document" "main_event_bus_document" {
3535

3636
principals {
3737
type = "AWS"
38-
identifiers = ["arn:aws:iam::${var.eventbus_account_id}:root"]
38+
identifiers = ["arn:aws:iam::${var.shared_infra_account_id}:root"]
3939
}
4040

4141
actions = [
@@ -50,7 +50,7 @@ data "aws_iam_policy_document" "main_event_bus_document" {
5050
test = "ArnLike"
5151
variable = "aws:SourceArn"
5252
values = [
53-
"arn:aws:events:${var.region}:${var.eventbus_account_id}:rule/*-data-plane*"
53+
"arn:aws:events:${var.region}:${var.shared_infra_account_id}:rule/*-data-plane*"
5454
]
5555
}
5656
}

infrastructure/terraform/components/dl/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ variable "eventpub_data_plane_bus_arn" {
196196
description = "Event publisher data plane"
197197
}
198198

199-
variable "eventbus_account_id" {
200-
type = string
201-
description = "The AWS Account ID for the event bus"
202-
}
203-
204199
variable "report_scheduler_schedule" {
205200
type = string
206201
description = "Schedule to trigger sender reports"

0 commit comments

Comments
 (0)