{"version":"2.1.232","anchor":"a-malformed-aws-region-env-var-is-now-ignored-and-reported","canonical_anchor":"a-malformed-aws-region-env-var-is-now-ignored-and-reported","heading":"A malformed AWS region env var is now ignored and reported","tier":"notice","area":"Bedrock","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232\/e\/a-malformed-aws-region-env-var-is-now-ignored-and-reported","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.232","markdown":"### A malformed AWS region env var is now ignored and reported\n\nA malformed AWS region variable is now ignored, falling back to us-east-1.\n\n**What**\n\n`AWS_REGION` and `AWS_DEFAULT_REGION` are checked against a region-shaped pattern before use. A value that fails the check is ignored and the fallback `us-east-1` is used, where previously any non-empty value was passed through verbatim.\n\n**Details**\n\n- The Bedrock status line says so: \"(default \u2014 region env var invalid, ignored; fix or unset AWS_REGION \/ AWS_DEFAULT_REGION)\".\n- The region resolver reports its source as `env-invalid` in that case.\n\n**Evidence**\n\n`DGg = \/^[a-z]{2,}(?:-[a-z0-9]+){0,4}$\/i;`\n\n- Area: Bedrock\n- Names: `AWS_REGION`, `AWS_DEFAULT_REGION`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}