Skip to content

Commit 3f3dad6

Browse files
authored
Added missing permission to databricks_aws_crossaccount_policy data source (#2283)
One more permission that is necessary for fleet use was missing from the policy definition in our documentation (tracked as a separate Jira)
1 parent 46a3262 commit 3f3dad6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

aws/data_aws_crossaccount_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func DataAwsCrossaccountPolicy() *schema.Resource {
6969
"ec2:DescribeInstances",
7070
"ec2:DescribeInternetGateways",
7171
"ec2:DescribeLaunchTemplates",
72+
"ec2:DescribeLaunchTemplateVersions",
7273
"ec2:DescribeNatGateways",
7374
"ec2:DescribeNetworkAcls",
7475
"ec2:DescribePlacementGroups",

aws/data_aws_crossaccount_policy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestDataAwsCrossAccountPolicy(t *testing.T) {
1616
}.Apply(t)
1717
assert.NoError(t, err)
1818
j := d.Get("json")
19-
assert.Lenf(t, j, 3294, "Strange length for policy: %s", j)
19+
assert.Lenf(t, j, 3340, "Strange length for policy: %s", j)
2020
}
2121

2222
func TestDataAwsCrossAccountPolicy_WithPassRoles(t *testing.T) {
@@ -29,5 +29,5 @@ func TestDataAwsCrossAccountPolicy_WithPassRoles(t *testing.T) {
2929
}.Apply(t)
3030
assert.NoError(t, err)
3131
j := d.Get("json")
32-
assert.Lenf(t, j, 3430, "Strange length for policy: %s", j)
32+
assert.Lenf(t, j, 3476, "Strange length for policy: %s", j)
3333
}

0 commit comments

Comments
 (0)