Skip to content

Commit 0cc16ee

Browse files
authored
Merge pull request #1493 from snyk/feat/add_aws_iam_group_policy_attachment
Add `aws iam group policy attachment`
2 parents 8c6f577 + 5eda873 commit 0cc16ee

19 files changed

+172297
-1
lines changed

pkg/iac/terraform/state/terraform_state_reader_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func TestTerraformStateReader_AWS_Resources(t *testing.T) {
131131
{name: "IAM role policy attachment", dirName: "aws_iam_role_policy_attachment", wantErr: false},
132132
{name: "IAM user policy attachment", dirName: "aws_iam_user_policy_attachment", wantErr: false},
133133
{name: "IAM group policy", dirName: "aws_iam_group_policy", wantErr: false},
134+
{name: "IAM group policy attachment", dirName: "aws_iam_group_policy_attachment", wantErr: false},
134135
{name: "VPC security group rule", dirName: "aws_vpc_security_group_rule", wantErr: false},
135136
{name: "route table", dirName: "aws_route_table", wantErr: false},
136137
{name: "route table associations", dirName: "aws_route_assoc", wantErr: false},
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"Id": "test-group-20220509135152620300000001",
4+
"Type": "aws_iam_group_policy_attachment",
5+
"Attrs": {
6+
"group": "test-group",
7+
"id": "test-group-20220509135152620300000001",
8+
"policy_arn": "arn:aws:iam::929327065333:policy/test-policy"
9+
}
10+
}
11+
]

0 commit comments

Comments
 (0)