Skip to content

Commit

Permalink
scope
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-goenka committed Jun 12, 2024
1 parent ba04806 commit 9ecec72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/service/resourceexplorer2/view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ resource "aws_resourceexplorer2_view" "test" {
func testAccViewConfig_scope(rName string) string {
return fmt.Sprintf(`
data "aws_caller_identity" "current" {}
data "aws_partition" "current" {}
resource "aws_resourceexplorer2_index" "test" {
type = "LOCAL"
Expand All @@ -389,8 +390,8 @@ resource "aws_resourceexplorer2_index" "test" {
}
resource "aws_resourceexplorer2_view" "test" {
name = %[1]q
scope = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"
name = %[1]q
scope = "arn:${data.aws_partition.current.partition}:iam::${data.aws_caller_identity.current.account_id}:root"
depends_on = [aws_resourceexplorer2_index.test]
}
`, rName)
Expand Down

0 comments on commit 9ecec72

Please sign in to comment.