Skip to content

Fix Hardcoded Region in Task Definition Log Group#259

Merged
klieret merged 1 commit intoSWE-agent:mainfrom
ColeMurray:main
Sep 18, 2025
Merged

Fix Hardcoded Region in Task Definition Log Group#259
klieret merged 1 commit intoSWE-agent:mainfrom
ColeMurray:main

Conversation

@ColeMurray
Copy link
Contributor

Fix hardcoded region in task definition log group.
Region was previously hardcoded to us-east-2. Region is now dynamically determined from the environment and aligned with other resources in the setup

#257

Fix hardcoded region in task definition log group. Region was previously
hardcoded to us-east-2. Region is now dynamically determined from the
environment and aligned with other resources in the setup
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a hardcoded region issue in the AWS ECS task definition logging configuration. The region was previously hardcoded to "us-east-2" but is now dynamically determined from the AWS environment to align with other resources.

  • Dynamically retrieves the AWS region from the ECS client instead of using a hardcoded value
  • Updates both the task definition log group configuration and CloudWatch log URL generation
  • Ensures regional consistency across all AWS resources in the setup

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/swerex/utils/aws.py Updates task definition to use dynamic region for awslogs-region configuration
src/swerex/deployment/fargate.py Passes dynamic region to CloudWatch log URL generation function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@klieret
Copy link
Member

klieret commented Sep 18, 2025

looking good, just confirmed that this remains at us-east-2 for me, so should hopefully work for our team

@klieret
Copy link
Member

klieret commented Sep 18, 2025

CC: @carlosejimenez

@klieret klieret merged commit d7987c0 into SWE-agent:main Sep 18, 2025
3 of 4 checks passed
lurf21 added a commit to lurf21/SWE-ReX that referenced this pull request Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants