Skip to content

Extract BDA region from profile ARN instead of separate env var #53

@laurencegoolsby

Description

@laurencegoolsby

Context

The app requires a BDA_REGION env var to be configured separately in the infra. This is redundant since the region is already embedded in the BDA_PROFILE_ARN (e.g., arn:aws:bedrock:us-east-1:123456789012:data-automation-profile/us.data-automation-v1).

Relates to navapbc/platform-test#278

Implementation

  • Parse the region from BDA_PROFILE_ARN at runtime (split on :, extract index 3)
  • Remove BDA_REGION env var from app code and infra config
  • Update tests to remove BDA_REGION fixtures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions