Skip to content

Commit

Permalink
Merge pull request #7813 from ministryofjustice/date_2024_09_02
Browse files Browse the repository at this point in the history
GitHub Actions Code Formatter workflow
  • Loading branch information
richgreen-moj authored Sep 2, 2024
2 parents d8b79f5 + 99c108f commit e24447f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 30 deletions.
5 changes: 1 addition & 4 deletions environments/delius-core.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"account-type": "member",
"codeowners": [
"hmpps-migration",
"hosting-migrations"
],
"codeowners": ["hmpps-migration", "hosting-migrations"],
"environments": [
{
"name": "development",
Expand Down
5 changes: 1 addition & 4 deletions environments/delius-iaps.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"account-type": "member",
"codeowners": [
"hmpps-migration",
"hosting-migrations"
],
"codeowners": ["hmpps-migration", "hosting-migrations"],
"environments": [
{
"name": "development",
Expand Down
5 changes: 1 addition & 4 deletions environments/delius-jitbit.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"account-type": "member",
"codeowners": [
"hmpps-migration",
"hosting-migrations"
],
"codeowners": ["hmpps-migration", "hosting-migrations"],
"environments": [
{
"name": "development",
Expand Down
5 changes: 1 addition & 4 deletions environments/delius-mis.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"account-type": "member",
"codeowners": [
"hmpps-migration",
"hosting-migrations"
],
"codeowners": ["hmpps-migration", "hosting-migrations"],
"environments": [
{
"name": "development",
Expand Down
5 changes: 1 addition & 4 deletions environments/delius-nextcloud.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"account-type": "member",
"codeowners": [
"hmpps-migration",
"hosting-migrations"
],
"codeowners": ["hmpps-migration", "hosting-migrations"],
"environments": [
{
"name": "development",
Expand Down
20 changes: 10 additions & 10 deletions terraform/environments/core-logging/cortex.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data "aws_iam_policy_document" "logging-sqs" {
type = "Service"
identifiers = ["s3.amazonaws.com"]
}
actions = ["sqs:SendMessage"]
actions = ["sqs:SendMessage"]
resources = [aws_sqs_queue.logging[each.key].arn]
condition {
test = "ArnEquals"
Expand All @@ -70,16 +70,16 @@ data "aws_iam_policy_document" "cortex_user_policy" {
]
resources = flatten([
aws_sqs_queue.mp_cloudtrail_log_queue.arn,
[ for key in aws_sqs_queue.logging : key.arn ]
[for key in aws_sqs_queue.logging : key.arn]
])
}
statement {
sid = "S3GetLogs"
effect = "Allow"
actions = ["s3:GetObject"]
sid = "S3GetLogs"
effect = "Allow"
actions = ["s3:GetObject"]
resources = concat(
[module.s3-bucket-cloudtrail.bucket.arn, "${module.s3-bucket-cloudtrail.bucket.arn}/*"],
[ for key in aws_s3_bucket.logging : "${key.arn}/*"]
[for key in aws_s3_bucket.logging : "${key.arn}/*"]
)
}
}
Expand Down Expand Up @@ -147,10 +147,10 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "logging" {
}

resource "aws_sqs_queue" "logging" {
for_each = local.cortex_logging_buckets
name_prefix = "${local.application_name}-${each.key}"
sqs_managed_sse_enabled = true # Using managed encryption
tags = local.tags
for_each = local.cortex_logging_buckets
name_prefix = "${local.application_name}-${each.key}"
sqs_managed_sse_enabled = true # Using managed encryption
tags = local.tags
}

resource "aws_sqs_queue_policy" "logging" {
Expand Down

0 comments on commit e24447f

Please sign in to comment.