-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlocals.tf
26 lines (24 loc) · 909 Bytes
/
locals.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
locals {
validation_stages = {
validate = "hashicorp/terraform:${var.terraform_version}"
fmt = "hashicorp/terraform:${var.terraform_version}"
lint = "aws/codebuild/amazonlinux2-x86_64-standard:5.0"
sast = "aws/codebuild/amazonlinux2-x86_64-standard:5.0"
}
conditional_validation_stages = merge(local.validation_stages, {
tags = "aws/codebuild/amazonlinux2-x86_64-standard:5.0"
})
env_var = {
CHECKOV_SKIPS = join(",", "${var.checkov_skip}")
CHECKOV_VERSION = var.checkov_version
SAST_REPORT_ARN = aws_codebuild_report_group.sast.arn
TF_VERSION = var.terraform_version
TFLINT_VERSION = var.tflint_version
}
conditional_env_var = merge(local.env_var, {
TAGS = var.tags
TAGNAG_VERSION = var.tagnag_version
})
}