You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
# Show a warning here in case we are directly forwarding an environment variable from
525
-
# the system env to the container which has not been prefixed with LOCALSTACK_.
526
-
# Suppress the warning for the "CI" env var.
527
-
# Suppress the warning if the env var was set from the profile.
528
-
LOG.warning(
529
-
"Non-prefixed environment variable %(env_var)s is forwarded to the LocalStack container! "
530
-
"Please use `LOCALSTACK_%(env_var)s` instead of %(env_var)s to explicitly mark this environment variable to be forwarded form the CLI to the LocalStack Runtime.",
531
-
{"env_var": env_var},
532
-
)
525
+
# Collect all env vars that are directly forwarded from the system env
526
+
# to the container which has not been prefixed with LOCALSTACK_ here.
527
+
# Suppress the "CI" env var.
528
+
# Suppress if the env var was set from the profile.
529
+
non_prefixed_env_vars.append(env_var)
533
530
cfg.env_vars[env_var] =value
534
531
532
+
# collectively log deprecation warnings for non-prefixed sys env vars
533
+
ifnon_prefixed_env_vars:
534
+
fromlocalstack.utils.analyticsimportlog
535
+
536
+
fornon_prefixed_env_varinnon_prefixed_env_vars:
537
+
# Show a deprecation warning for each individual env var collected above
538
+
LOG.warning(
539
+
"Non-prefixed environment variable %(env_var)s is forwarded to the LocalStack container! "
540
+
"Please use `LOCALSTACK_%(env_var)s` instead of %(env_var)s to explicitly mark this environment variable to be forwarded form the CLI to the LocalStack Runtime.",
0 commit comments