Skip to content

Commit dbbf00b

Browse files
committed
Hardcoded fix
1 parent 4588fae commit dbbf00b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/service/emrserverless/application_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,8 @@ resource "aws_emrserverless_application" "test" {
10581058

10591059
func testAccApplicationConfig_monitoringConfigurationUpdated(rName string) string {
10601060
return fmt.Sprintf(`
1061+
data "aws_region" "current" {}
1062+
10611063
resource "aws_s3_bucket" "test_updated" {
10621064
bucket = "%[1]s-updated"
10631065
force_destroy = true
@@ -1083,7 +1085,7 @@ resource "aws_emrserverless_application" "test" {
10831085
}
10841086
10851087
prometheus_monitoring_configuration {
1086-
remote_write_url = "https://aps-workspaces.us-east-1.amazonaws.com/workspaces/ws-12345678-1234-1234-1234-123456789012/api/v1/remote_write"
1088+
remote_write_url = "https://aps-workspaces.${data.aws_region.current.name}.amazonaws.com/workspaces/ws-12345678-1234-1234-1234-123456789012/api/v1/remote_write"
10871089
}
10881090
10891091
s3_monitoring_configuration {

0 commit comments

Comments
 (0)