Skip to content

Commit

Permalink
Merge pull request #5263 from ministryofjustice/cdpt-chaps-role
Browse files Browse the repository at this point in the history
add ec2 instance role for logs
  • Loading branch information
roncitrus authored Mar 7, 2024
2 parents c60ed78 + b33b8b3 commit 4532b16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions terraform/environments/cdpt-chaps/bastion_linux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ module "bastion_linux" {

# s3 - used for logs and user ssh public keys
bucket_name = "bastion"
bucket_versioning = true
bucket_force_destroy = true
# public keys
public_key_data = local.public_key_data.keys[local.environment]
# logs
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/cdpt-chaps/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ resource "aws_iam_policy" "ec2_instance_policy" { #tfsec:ignore:aws-iam-no-polic
"ecr:BatchGetImage",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogGroups",
"s3:ListBucket",
"s3:*Object*",
"kms:Decrypt",
Expand Down

0 comments on commit 4532b16

Please sign in to comment.