Skip to content

isolate prefect resources by environment#207

Merged
solomon-negusse merged 87 commits intomainfrom
isolated-envs
Mar 24, 2026
Merged

isolate prefect resources by environment#207
solomon-negusse merged 87 commits intomainfrom
isolated-envs

Conversation

@solomon-negusse
Copy link
Member

@solomon-negusse solomon-negusse commented Mar 2, 2026

This PR aims to isolate environment-specific resources/config by (a) suffixing Prefect webhook/automation identifiers per Terraform workspace, and (b) allowing New Relic agent configuration to vary by environment. It also adds a small Click-based CLI for running pipeline update flows locally.

Changes:

Add new_relic_environment Terraform variable and pass it into the API ECS task env.
Suffix Prefect webhook/event/automation names by workspace (local.name_suffix) to avoid cross-environment collisions.
Introduce a Click CLI wrapper for pipelines/run_updates.py and document local + Prefect Cloud execution.

manukala6 and others added 30 commits January 6, 2026 10:02
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 aims to isolate environment-specific resources/config by (a) suffixing Prefect webhook/automation identifiers per Terraform workspace, and (b) allowing New Relic agent configuration to vary by environment. It also adds a small Click-based CLI for running pipeline update flows locally.

Changes:

  • Add new_relic_environment Terraform variable and pass it into the API ECS task env.
  • Suffix Prefect webhook/event/automation names by workspace (local.name_suffix) to avoid cross-environment collisions.
  • Introduce a Click CLI wrapper for pipelines/run_updates.py and document local + Prefect Cloud execution.

Reviewed changes

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

Show a summary per file
File Description
terraform/vars/staging.tfvars Adds staging override for new_relic_environment.
terraform/variables.tf Defines new new_relic_environment variable (default production).
terraform/main.tf Injects NEW_RELIC_ENVIRONMENT into the API task definition; adjusts dask worker container name.
terraform/prefect.tf Suffixes Prefect webhook/event/automation names by workspace; gates automation enablement.
api/newrelic.ini Enables New Relic monitoring + distributed tracing for the staging environment.
pipelines/run_updates.py Adds Click CLI entrypoint and options for selecting update flow/version/flags.
pipelines/pyproject.toml / pipelines/uv.lock Adds click dependency.
pipelines/README.md Expands documentation for running tests, local runs, and Prefect Cloud architecture/usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@danscales danscales left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for updating the README.md with all the relevant info and configurations!

@solomon-negusse solomon-negusse merged commit 6230738 into main Mar 24, 2026
5 checks passed
@solomon-negusse solomon-negusse deleted the isolated-envs branch March 24, 2026 12:45
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.

5 participants