Browse Source

chore: bump pre-commit

tags/3.0.3^2
Kim Samba 7 months ago
parent
commit
29431bc31c
Signed by: kimsamba <kim.samba@fxinnovation.com> GPG Key ID: FF23DF61CBC9A65A
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      .pre-commit-config.yaml
  2. +1
    -1
      data.tf
  3. +2
    -2
      main.tf

+ 1
- 1
.pre-commit-config.yaml View File

@@ -6,7 +6,7 @@ repos:
- id: terraform_docs
- id: terraform_tflint
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace


+ 1
- 1
data.tf View File

@@ -2,5 +2,5 @@ data "aws_caller_identity" "current" {
}

locals {
kms_key_needed = (var.kms_key_create || contains(var.types, "SecureString")) && ! var.use_default_kms_key
kms_key_needed = (var.kms_key_create || contains(var.types, "SecureString")) && !var.use_default_kms_key
}

+ 2
- 2
main.tf View File

@@ -47,7 +47,7 @@ resource "aws_ssm_parameter" "ignore_changes_on_value" {
}

resource "aws_kms_key" "this" {
count = var.enabled && var.kms_key_create && ! var.use_default_kms_key ? 1 : 0
count = var.enabled && var.kms_key_create && !var.use_default_kms_key ? 1 : 0

description = "KMS Key for ${var.prefix} SSM secure strings parameters encryption."

@@ -64,7 +64,7 @@ resource "aws_kms_key" "this" {
}

resource "aws_kms_alias" "this" {
count = var.enabled && var.kms_key_create && ! var.use_default_kms_key ? 1 : 0
count = var.enabled && var.kms_key_create && !var.use_default_kms_key ? 1 : 0

name = "alias/${var.kms_key_alias_name}"
target_key_id = aws_kms_key.this[0].key_id


Loading…
Cancel
Save