Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1641294: Allow for configurable snowflake.yml files for streamlit deployments #1502

Closed
rorydonaldson opened this issue Aug 27, 2024 · 2 comments

Comments

@rorydonaldson
Copy link

Description

Allow the user to override all values in the snowflake.yml file when running snow streamlit deploy.
Alternatively, allow the user to point at a different project definition.

E.g.

snowflake streamlit deploy --project-definition snowflake-testing.yml
snowflake streamlit deploy --project-definition snowflake-preprod.yml
snowflake streamlit deploy --project-definition snowflake-production.yml

Context

I use a single snowflake account that has 3 separate environments.
When running a streamlit deploy, I want to able to change the name, warehouse, stage, database, role etc of the streamlit app.

@github-actions github-actions bot changed the title Allow for configurable snowflake.yml files for streamlit deployments SNOW-1641294: Allow for configurable snowflake.yml files for streamlit deployments Aug 27, 2024
@snowflakedb snowflakedb deleted a comment from caineblood Aug 28, 2024
@sfc-gh-turbaszek
Copy link
Contributor

@rorydonaldson have you tried using templates?

definition_version: "1.1"
env:
  schema: "test"
streamlit:
  name: "MY_APP"
  schema: <% ctx.env.schema %>
schema="staging"; snow streamlit deploy
schema="prod"; snow streamlit deploy

https://docs.snowflake.com/en/developer-guide/snowflake-cli-v2/project-definitions/about#alter-command-behavior-using-templates

@rorydonaldson
Copy link
Author

rorydonaldson commented Aug 28, 2024 via email

@snowflakedb snowflakedb locked and limited conversation to collaborators Aug 29, 2024
@sfc-gh-turbaszek sfc-gh-turbaszek converted this issue into discussion #1511 Aug 29, 2024
@github-staff github-staff deleted a comment from YeGop0218 Oct 28, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants