Skip to content

Commit

Permalink
Merge pull request #19 from ministryofjustice/uniq-sids
Browse files Browse the repository at this point in the history
Update SIDs to be unique
  • Loading branch information
jakemulley authored Mar 29, 2023
2 parents a238f5f + 148faea commit fdf9cd7
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api-gateway.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "api_gateway_for_github" {
statement {
sid = "AllowGetOwn"
sid = "AllowAPIGatewayGetOwn"
effect = "Allow"
actions = ["apigateway:GET"]
resources = ["*"]
Expand Down
4 changes: 2 additions & 2 deletions cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "cloudwatch_for_github" {
statement {
sid = "AllowList"
sid = "AllowCloudwatchList"
effect = "Allow"
actions = [
"cloudwatch:ListMetric*",
Expand All @@ -11,7 +11,7 @@ data "aws_iam_policy_document" "cloudwatch_for_github" {
}

statement {
sid = "AllowViewOwn"
sid = "AllowCloudwatchViewOwn"
effect = "Allow"
actions = [
"cloudwatch:GetDashboard"
Expand Down
4 changes: 2 additions & 2 deletions cognito-idp.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "cognito_idp_for_github" {
statement {
sid = "AllowList"
sid = "AllowCognitoList"
effect = "Allow"
actions = [
"cognito-idp:ListUserPools"
Expand All @@ -9,7 +9,7 @@ data "aws_iam_policy_document" "cognito_idp_for_github" {
}

statement {
sid = "AllowGetOwn"
sid = "AllowCognitoGetOwn"
effect = "Allow"
actions = [
"cognito-idp:List*",
Expand Down
4 changes: 2 additions & 2 deletions iam.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "iam_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowIAMListDescribe"
effect = "Allow"
actions = [
"iam:ListRoles",
Expand All @@ -12,7 +12,7 @@ data "aws_iam_policy_document" "iam_for_github" {
}

statement {
sid = "AllowGetOwn"
sid = "AllowIAMGetOwn"
effect = "Allow"
actions = [
"iam:Get*",
Expand Down
4 changes: 2 additions & 2 deletions kms.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "kms_for_github" {
statement {
sid = "AllowRead"
sid = "AllowKMSRead"
effect = "Allow"
actions = [
"kms:DescribeKey",
Expand All @@ -19,7 +19,7 @@ data "aws_iam_policy_document" "kms_for_github" {
}

statement {
sid = "AllowEncryptDecryptOwn"
sid = "AllowKMSEncryptDecryptOwn"
effect = "Allow"
actions = [
"kms:Decrypt",
Expand Down
2 changes: 1 addition & 1 deletion opensearch.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "opensearch_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowOpenSearchListDescribe"
effect = "Allow"
actions = [
"es:DescribeDomain",
Expand Down
4 changes: 2 additions & 2 deletions rds.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "rds_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowRDSListDescribe"
effect = "Allow"
actions = [
"rds:Describe*",
Expand All @@ -10,7 +10,7 @@ data "aws_iam_policy_document" "rds_for_github" {
}

statement {
sid = "AllowGetOwn"
sid = "AllowRDSGetOwn"
effect = "Allow"
actions = [
"rds:CreateDBSnapshot",
Expand Down
4 changes: 2 additions & 2 deletions s3.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "s3_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowS3ListDescribe"
effect = "Allow"
actions = [
"s3:GetAccelerateConfiguration",
Expand Down Expand Up @@ -30,7 +30,7 @@ data "aws_iam_policy_document" "s3_for_github" {
}

statement {
sid = "AllowGetOwn"
sid = "AllowS3GetOwn"
effect = "Allow"
actions = [
"s3:ListBucket*",
Expand Down
4 changes: 2 additions & 2 deletions sns.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "sns_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowSNSListDescribe"
effect = "Allow"
actions = [
"sns:ListPlatformApplications",
Expand All @@ -12,7 +12,7 @@ data "aws_iam_policy_document" "sns_for_github" {
}

statement {
sid = "AllowPublishOwn"
sid = "AllowSNSPublishOwn"
effect = "Allow"
actions = [
"sns:Publish",
Expand Down
4 changes: 2 additions & 2 deletions sqs.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "sqs_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowSQSListDescribe"
effect = "Allow"
actions = [
"sqs:GetQueueAttributes",
Expand All @@ -13,7 +13,7 @@ data "aws_iam_policy_document" "sqs_for_github" {
}

statement {
sid = "AllowSendRecvOwn"
sid = "AllowSQSSendRecvOwn"
effect = "Allow"
actions = [
"sqs:ChangeMessageVisibility",
Expand Down
2 changes: 1 addition & 1 deletion vpc.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data "aws_iam_policy_document" "vpc_for_github" {
statement {
sid = "AllowListDescribe"
sid = "AllowVPCListDescribe"
effect = "Allow"
actions = [
"ec2:DescribeAccountAttributes",
Expand Down

0 comments on commit fdf9cd7

Please sign in to comment.