Skip to content

Commit

Permalink
fix: issue maddevsio#304 layer2-aws terraform plan error (maddevsio#305)
Browse files Browse the repository at this point in the history
* fix: issue maddevsio#304 layer2-aws terraform plan error

* issue maddevsio#305 fix tfsec

* issue maddevsio#305 fix tfsec

* issue maddevsio#305 fix tfsec
  • Loading branch information
sviatoslav6 authored and p1gmale0n committed Aug 24, 2023
1 parent 1f1d149 commit 21e4076
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/layer1-aws/aws-cloudtrail.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#tfsec:ignore:aws-cloudtrail-enable-at-rest-encryption
#tfsec:ignore:aws-cloudtrail-enable-at-rest-encryption tfsec:ignore:aws-cloudtrail-ensure-cloudwatch-integration
resource "aws_cloudtrail" "main" {
name = local.name
s3_bucket_name = aws_s3_bucket.cloudtrail.id
Expand All @@ -10,7 +10,7 @@ resource "aws_cloudtrail" "main" {
tags = local.tags
}

#tfsec:ignore:aws-s3-enable-bucket-logging tfsec:ignore:aws-s3-enable-versioning
#tfsec:ignore:aws-s3-enable-bucket-logging tfsec:ignore:aws-s3-enable-versioning tfsec:ignore:aws-cloudtrail-require-bucket-access-logging
resource "aws_s3_bucket" "cloudtrail" {
bucket = "${local.name}-aws-cloudtrail-logs"

Expand Down
1 change: 1 addition & 0 deletions terraform/layer1-aws/aws-vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data "aws_security_group" "default" {
vpc_id = module.vpc.vpc_id
}

#tfsec:ignore:aws-ec2-no-public-ip-subnet
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.12.0"
Expand Down
2 changes: 2 additions & 0 deletions terraform/layer2-k8s/eks-gitlab-runner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "gitlab_runner_enc
}

resource "aws_s3_bucket_lifecycle_configuration" "gitlab_runner_lifecycle" {
count = local.gitlab_runner.enabled ? 1 : 0

bucket = aws_s3_bucket.gitlab_runner_cache[0].id

rule {
Expand Down

0 comments on commit 21e4076

Please sign in to comment.