-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16353 from rifelpet/iam-policy-refactor
Use IAM Policy Builder for SQS Queue Policy
- Loading branch information
Showing
68 changed files
with
1,005 additions
and
671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 15 additions & 10 deletions
25
...ate_cluster/additionalobjects/data/aws_sqs_queue_additionalobjects-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:additionalobjects-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:additionalobjects-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...tegration/update_cluster/apiservernodes/data/aws_sqs_queue_minimal-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:minimal-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:minimal-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...ration/update_cluster/aws-lb-controller/data/aws_sqs_queue_minimal-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:minimal-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:minimal-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...ter/bastionadditional_user-data/data/aws_sqs_queue_bastionuserdata-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:bastionuserdata-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:bastionuserdata-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...ty-expander-custom/data/aws_sqs_queue_cas-priority-expander-custom-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:cas-priority-expander-custom-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:cas-priority-expander-custom-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...oscaler-priority-expander/data/aws_sqs_queue_cas-priority-expander-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:cas-priority-expander-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:cas-priority-expander-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
tests/integration/update_cluster/complex/data/aws_sqs_queue_complex-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:complex-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:complex-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
tests/integration/update_cluster/compress/data/aws_sqs_queue_compress-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:compress-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:compress-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...ion/update_cluster/containerd-custom/data/aws_sqs_queue_containerd-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:containerd-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:containerd-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
...ntegration/update_cluster/containerd/data/aws_sqs_queue_containerd-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:containerd-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:containerd-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
25 changes: 15 additions & 10 deletions
25
tests/integration/update_cluster/digit/data/aws_sqs_queue_123-example-com-nth_policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": ["events.amazonaws.com", "sqs.amazonaws.com"] | ||
}, | ||
"Action": "sqs:SendMessage", | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:123-example-com-nth" | ||
}] | ||
} | ||
"Statement": [ | ||
{ | ||
"Action": "sqs:SendMessage", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": [ | ||
"events.amazonaws.com", | ||
"sqs.amazonaws.com" | ||
] | ||
}, | ||
"Resource": "arn:aws-test:sqs:us-test-1:123456789012:123-example-com-nth" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
Oops, something went wrong.