isolate prefect resources by environment#207
Merged
solomon-negusse merged 87 commits intomainfrom Mar 24, 2026
Merged
Conversation
…-zeno-data-infra into feature/tcl_pipeline
…-zeno-data-infra into feature/tcl_pipeline
Contributor
There was a problem hiding this comment.
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_environmentTerraform 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.pyand 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.
danscales
approved these changes
Mar 23, 2026
Collaborator
danscales
left a comment
There was a problem hiding this comment.
Looks great! Thanks for updating the README.md with all the relevant info and configurations!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: