Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthreddy29 committed May 23, 2024
1 parent ee39947 commit 3e737f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ jobs:
- name: tfsec
uses: aquasecurity/[email protected]
with:
working_directory: ${{ github.workspace }}
tfsec_args: --soft-fail
github_token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 6 additions & 8 deletions modules/terraform/aws/data-disk/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# resource "aws_kms_key" "ebs_encryption" {
# enable_key_rotation = true
# }
resource "aws_kms_key" "ebs_encryption" {
enable_key_rotation = true
}

resource "aws_ebs_volume" "data_disk" {
availability_zone = var.zone
Expand All @@ -10,9 +10,7 @@ resource "aws_ebs_volume" "data_disk" {
iops = var.data_disk_iops_read_write
throughput = var.data_disk_mbps_read_write

# encrypted = true
# kms_key_id = aws_kms_key.ebs_encryption.id


tags = var.tags
encrypted = true
kms_key_id = aws_kms_key.ebs_encryption.id
tags = var.tags
}

0 comments on commit 3e737f2

Please sign in to comment.