-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.envrc
172 lines (161 loc) · 6.27 KB
/
.envrc
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#!/usr/bin/env bash
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "pnpm exec projen".
# Team Shared direnv.
# See: https://github.com/direnv/direnv
# Enforces `set -euo pipefail` despite user local config.
strict_env
# forces "at least"
direnv_version 2.34.0
# User local additions.
source_env_if_exists .envrc.local
# Load mise (previously known as "rtx") or asdf
if has mise && has use_mise; then
use mise
elif has rtx && has use_rtx; then
log_status "Note: rtx was renamed to mise. Consider migrating your local rtx config to mise. https://mise.jdx.dev/rtx.html"
use rtx
elif has asdf && has use_asdf; then
log_status "mise/rtx not found. Falling back to asdf."
use asdf
else
log_error "Neither mise (rtx) nor asdf are installed or integrated with direnv."
log_error "For asdf: https://asdf-vm.com/"
log_error "For mise (asdf clone in rust): https://github.com/jdx/mise"
fi
layout node
# Docker
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
# Expose Tool Versions
export TOOLS_AWSCLI_VERSION=2.15.49
export TOOLS_SOPS_VERSION=3.8.1
export TOOLS_HELM_VERSION=3.14.4
# Set CCU_STAGE in .envrc.local (local|development|staging|production)
# Config values can then be overridden from the appropriate ".envrc.$CCU_STAGE" file.
#
# All config keys available for override:
# CHART__NAMESPACE
# CHART__DOMAIN_NAME
# CHART__API_IMAGE__REPOSITORY
# CHART__API_IMAGE__TAG
# CHART__API_IMAGE__PULL_POLICY
# CHART__WEB_IMAGE__REPOSITORY
# CHART__WEB_IMAGE__TAG
# CHART__WEB_IMAGE__PULL_POLICY
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/LISTEN-PORTS
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/SSL-REDIRECT
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/SCHEME
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/TARGET-TYPE
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/TARGET-GROUP-ATTRIBUTES
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/HEALTHCHECK-PATH
# CHART__INGRESS_ANNOTATIONS__ALB__INGRESS__KUBERNETES__IO/LOAD-BALANCER-ATTRIBUTES
# CHART__WSGI__SPREAD
# CHART__WSGI__VERTICAL_SCALING__ENABLED
# CHART__WSGI__SCALING__MIN_REPLICAS
# CHART__WSGI__SCALING__MAX_REPLICAS
# CHART__WSGI__SCALING__CPU_UTIL_PERCENT
# CHART__WSGI__SCALING__MEM_UTIL_PERCENT
# CHART__ASGI__SPREAD
# CHART__ASGI__VERTICAL_SCALING__ENABLED
# CHART__ASGI__SCALING__MIN_REPLICAS
# CHART__ASGI__SCALING__MAX_REPLICAS
# CHART__ASGI__SCALING__CPU_UTIL_PERCENT
# CHART__ASGI__SCALING__MEM_UTIL_PERCENT
# CHART__CELERY_BEAT__SPREAD
# CHART__CELERY_BEAT__VERTICAL_SCALING__ENABLED
# CHART__CELERY_BEAT__REPLICA_COUNT
# CHART__CELERY__CELERY__SPREAD
# CHART__CELERY__CELERY__VERTICAL_SCALING__ENABLED
# CHART__CELERY__CELERY__QUEUES
# CHART__CELERY__CELERY__SCALING__MIN_REPLICAS
# CHART__CELERY__CELERY__SCALING__MAX_REPLICAS
# CHART__CELERY__CELERY__SCALING__CPU_UTIL_PERCENT
# CHART__CELERY__CELERY__SCALING__MEM_UTIL_PERCENT
# CHART__CELERY__SIGNAL__SPREAD
# CHART__CELERY__SIGNAL__VERTICAL_SCALING__ENABLED
# CHART__CELERY__SIGNAL__QUEUES
# CHART__CELERY__SIGNAL__SCALING__MIN_REPLICAS
# CHART__CELERY__SIGNAL__SCALING__MAX_REPLICAS
# CHART__CELERY__SIGNAL__SCALING__CPU_UTIL_PERCENT
# CHART__CELERY__SIGNAL__SCALING__MEM_UTIL_PERCENT
# CHART__ADMIN_WEBSOCKET__SPREAD
# CHART__ADMIN_WEBSOCKET__VERTICAL_SCALING__ENABLED
# CHART__ADMIN_WEBSOCKET__REPLICA_COUNT
# API_STACK__EKS__CORE_DNS_VERSION
# API_STACK__EKS__KUBE_PROXY_VERSION
# API_STACK__EKS__VPC_CNI_VERSION
# API_STACK__EKS__EBS_CSI_VERSION
# API_STACK__EKS__DEFAULT_SECRETS_ENCRYPTION
# API_STACK__EKS__K8S__VERSION
# API_STACK__EKS__PLATFORM_ARNS
# API_STACK__EKS__INSTANCE_TYPES
# API_STACK__DATABASE__DATABASE_NAME
# API_STACK__DATABASE__SNAPSHOT_IDENTIFIER
# API_STACK__DATABASE__ENGINE_VERSION
# API_STACK__DATABASE__IO_OPTIMIZED
# API_STACK__DATABASE__MIN_ACU
# API_STACK__DATABASE__MAX_ACU
# API_STACK__DATABASE__NUM_REPLICAS
# API_STACK__DATABASE__NUM_REPLICAS_SCALED_WITH_WRITER
# API_STACK__DATABASE__PERFORMANCE_INSIGHTS
# API_STACK__DATABASE__PERFORMANCE_INSIGHTS_RETENTION
# API_STACK__DATABASE__CLOUDWATCH_LOGS_RETENTION_DAYS
# API_STACK__DATABASE__DELETION_PROTECTION
# API_STACK__DATABASE__BACKUP_RETENTION_DAYS
# API_STACK__DATABASE__BASTION_ALLOW_LIST
# API_STACK__NETWORK__MAX_AZS
# API_STACK__NETWORK__NAT_GATEWAYS
# API_STACK__NETWORK__CREATE_ISOLATED_SUBNET
# API_STACK__CACHE__ENABLED
# API_STACK__CACHE__NODE_TYPE
# API_STACK__CACHE__ENGINE_VERSION
# API_STACK__CACHE__NODES
# API_STACK__CACHE__REPLICAS
# API_STACK__CACHE__CLUSTER_MODE
# API_STACK__CACHE__MEMORY_AUTOSCALING_TARGET
# API_STACK__ARC__GITHUB__APP_ID
# API_STACK__ARC__GITHUB__APP_INSTALLATION_ID
# API_STACK__ARC__GITHUB__APP_PRIVATE_KEY
# API_STACK__ARC__MIN_RUNNERS
# API_STACK__ARC__MAX_RUNNERS
# API_STACK__ARC__IMAGES__RUNNER
# API_STACK__ARC__IMAGES__INIT-DIND-EXTERNALS
# API_STACK__ARC__IMAGES__DIND
# API_STACK__DNS__ZONE_NAME
# API_STACK__DNS__SUB_DOMAIN
# API__CONFIG__CELERY__ALWAYS_EAGER
# API__CONFIG__DJANGO__ACCOUNT_ALLOW_REGISTRATION
# API__CONFIG__DJANGO__ALLOWED_HOSTS
# API__CONFIG__DJANGO__CSRF_COOKIE_SECURE
# API__CONFIG__DJANGO__CORS_ORIGIN_WHITELIST
# API__CONFIG__DJANGO__CSRF_TRUSTED_ORIGINS
# API__CONFIG__DJANGO__SECURE_SSL_REDIRECT
# API__CONFIG__DJANGO__SESSION_COOKIE_SECURE
# API__CONFIG__DJANGO__EMAIL_BACKEND
# API__CONFIG__DJANGO__SETTINGS_MODULE
# API__CONFIG__ELASTIC_SEARCH__HOST
# API__CONFIG__NEW_RELIC__CONFIG_FILE
# API__CONFIG__CCU__NEWRELIC_DISABLE
# API__CONFIG__CCU__WEB_URL
# API__CONFIG__CCU__API_URL
# API__CONFIG__CCU__FORCE_DOCKER
# API__CONFIG__SENTRY__TRACE_EXCLUDE_URLS
# API__CONFIG__CONNECT__INSTANCE_ID
# API__CONFIG__PHONE__CHECK_TIMEZONE
# API__CONFIG__LANGCHAIN__TRACING_V2
# API__CONFIG__LANGCHAIN__ENDPOINT
# API__CONFIG__LANGCHAIN__PROJECT
# API__CONFIG__RAG__CHAT_MODEL
# API__CONFIG__RAG__DOCUMENT_EMBED_MODEL
# API__CONFIG__RAG__QUERY_EMBED_MODEL
# API__SECRETS
# CDK_ENVIRONMENT__ACCOUNT
# CDK_ENVIRONMENT__REGION
# CCU_STAGE
# PIPELINE__REPOSITORIES
# PIPELINE__ASSETS_BUCKET_NAME
# PIPELINE__APP_REGISTRY_TAG
# Load environment config overrides.
export CCU_STAGE="${CCU_STAGE:-local}"
target_env=".envrc.${CCU_STAGE}"
source_env_if_exists "$target_env"