Add run_shell_script and pip_install_requirements utility steps#655
Merged
mitchnielsen merged 5 commits intomainfrom Mar 13, 2026
Merged
Add run_shell_script and pip_install_requirements utility steps#655mitchnielsen merged 5 commits intomainfrom
mitchnielsen merged 5 commits intomainfrom
Conversation
…utility steps Resolves #654
Member
|
Thanks for opening this @bdalpe. Looks like there are some test failures to check out. |
Contributor
Author
|
Thanks @mitchnielsen. Lint issues should be fixed now. |
This is expected behavior and controlled
0a38bbe to
bcd48e0
Compare
even on non-run_shell_script pull steps
Member
|
@bdalpe what do you think of adding example(s) in the deployment example? I think it could be helpful for end users to see a real example of how you'd set this up. |
Contributor
Author
|
@mitchnielsen good call out. I added the missing supported steps to the example resource file. |
mitchnielsen
approved these changes
Mar 13, 2026
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.
Summary
Adds support for two additional Prefect deployment utility pull steps in Terraform deployment configuration:
run_shell_scriptpip_install_requirementsThis updates deployment
pull_stepsso these step types can be configured in Terraform and correctly serialized/deserialized with the Prefect API, based on upstream step definitions inutility.py.What Changed
prefect.deployments.steps.run_shell_scriptprefect.deployments.steps.pip_install_requirementspull_stepsschema to support new fields, including:script,env,stream_output,expand_env_vars,requirements_file, and shareddirectorypull_stepsschema in parity with resource changes.pull_stepsschema.Validation
gofmt.internal/api, deployment resource, deployment datasource).Closes #654
General
Closes <issue>, if availableDraftstatus is used until ready for reviewCode-level changes
New or updated resource/datasource
mise run docsfrom source code)- When applicable, provide a link back to the relevant page in the Prefect documentation site.
- Use the doc preview tool to confirm page(s) render correctly.
- Resource example under
examples/resources/prefect_<name>/resource.tf- Import example under
examples/resources/prefect_<name>/import.sh- Datasource example under
examples/data-sources,resources>/prefect_<name>/data-source.tf