{"version":"2.1.232","anchor":"cloud-region-environment-variables-are-validated-before-use","canonical_anchor":"cloud-region-environment-variables-are-validated-before-use","heading":"Cloud region environment variables are validated before use","tier":"notice","area":"Cloud Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232\/e\/cloud-region-environment-variables-are-validated-before-use","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232","markdown":"### Cloud region environment variables are validated before use\n\nA malformed cloud region in your environment is now ignored in favour of the default.\n\n**What**\n\nRegion values read from the environment must now look like a region (`\/^[a-z]{2,}(?:-[a-z0-9]+){0,4}$\/i`); anything else is treated as unset and the default is used instead of a malformed value being sent to the endpoint.\n\n**Details**\n\n- Applies to `AWS_REGION`, `AWS_DEFAULT_REGION`, the region resolved from the AWS config file, `ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION` and `CLOUD_ML_REGION`.\n- `CLOUD_ML_REGION` was previously used verbatim with a plain fallback to `us-east5` and no check at all.\n\n**Evidence**\n\n`CLOUD_ML_REGION`\n\n- Area: Cloud Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}