-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenvironment_variables.tf
More file actions
34 lines (32 loc) · 1.15 KB
/
environment_variables.tf
File metadata and controls
34 lines (32 loc) · 1.15 KB
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
27
28
29
30
31
32
33
34
locals {
# Map from environment variable name to environment variable value
# This is a map rather than a list so that variables can be easily
# overridden per environment using terraform's `merge` function
default_extra_environment_variables = {
# Example environment variables
# WORKER_THREADS_COUNT = 4
# LOG_LEVEL = "info"
# DB_CONNECTION_POOL_SIZE = 5
}
# Configuration for secrets
# List of configurations for defining environment variables that pull from SSM parameter
# store. Configurations are of the format
# {
# ENV_VAR_NAME = {
# manage_method = "generated" # or "manual" for a secret that was created and stored in SSM manually
# secret_store_name = "/ssm/param/name"
# }
# }
secrets = {
# Example generated secret
# RANDOM_SECRET = {
# manage_method = "generated"
# secret_store_name = "/${var.app_name}-${var.environment}/random-secret"
# }
# Example secret that references a manually created secret
# SECRET_SAUCE = {
# manage_method = "manual"
# secret_store_name = "/${var.app_name}-${var.environment}/secret-sauce"
# }
}
}