File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,8 @@ resource "terraform_data" "trigger" {
307
307
// nosemgrep: ci.events-in-func-name -- Function reflects PutEvents operation naming for consistency.
308
308
func testAccPutEventsActionConfig_customBus (rName string ) string {
309
309
return fmt .Sprintf (`
310
+ data "aws_partition" "current" {}
311
+
310
312
resource "aws_cloudwatch_event_bus" "test" {
311
313
name = %[1]q
312
314
}
@@ -357,7 +359,7 @@ action "aws_events_put_events" "test" {
357
359
detail_type = "Custom Event"
358
360
event_bus_name = aws_cloudwatch_event_bus.test.name
359
361
time = "2023-01-01T12:00:00Z"
360
- resources = ["arn:aws :s3:::example-bucket"]
362
+ resources = ["arn:${data.aws_partition.current.partition} :s3:::example-bucket"]
361
363
detail = jsonencode({
362
364
custom_field = "custom_value"
363
365
marker = %[1]q
You can’t perform that action at this time.
0 commit comments