<commit_before>UNAME := $(shell uname -s | tr A-Z a-z)
BIN_DIR = bin
DL_DIR = downloads
ARCH = amd64
TF_PLUG_DIR := .terraform/plugins/$(UNAME)_$(ARCH)

TF_VER = 0.11.11
TF_ZIP_FILE := terraform_$(TF_VER)_$(UNAME)_$(ARCH).zip
TF_ZIP_DL := $(DL_DIR)/$(TF_ZIP_FILE)
TF_BIN := $(BIN_DIR)/terraform

# these default values must be in sync with the definitions variables.tf
TF_VAR_service_name ?= ci
TF_VAR_domain_name ?= lsst.codes
AWS_DEFAULT_REGION ?= us-east-1
FQDN := $(subst jenkins-prod-,,$(TF_VAR_env_name)-$(TF_VAR_service_name).$(TF_VAR_domain_name))
TF_S3_BCKT := $(FQDN)-tf

.PHONY: all test
all: tf-install<commit_msg>require certain env vars are present to run make<commit_after>UNAME := $(shell uname -s | tr A-Z a-z)
BIN_DIR = bin
DL_DIR = downloads
ARCH = amd64
TF_PLUG_DIR := .terraform/plugins/$(UNAME)_$(ARCH)

TF_VER = 0.11.11
TF_ZIP_FILE := terraform_$(TF_VER)_$(UNAME)_$(ARCH).zip
TF_ZIP_DL := $(DL_DIR)/$(TF_ZIP_FILE)
TF_BIN := $(BIN_DIR)/terraform

ndef = $(if $(value $(1)),,$(error $(1) not set))

# these default values must be in sync with the definitions variables.tf
TF_VAR_env_name ?= $(call ndef, TF_VAR_env_name)
TF_VAR_service_name ?= $(call ndef, TF_VAR_service_name)
TF_VAR_domain_name ?= $(call ndef, TF_VAR_domain_name)
AWS_DEFAULT_REGION ?= $(call ndef, AWS_DEFAULT_REGION)

dns_prefix := $(subst jenkins-prod-,,$(TF_VAR_env_name)-)
FQDN := $(dns_prefix)$(TF_VAR_service_name).$(TF_VAR_domain_name)
TF_S3_BCKT := $(FQDN)-tf

.PHONY: all test
all: tf-install
{'fraction_non_alphanumeric': 0.1554959785522788, 'fraction_numerical': 0.012734584450402145, 'mean_word_length': 6.109523809523809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3651792', 'n_tokens_mistral': 626, 'n_tokens_neox': 621, 'n_words': 126}