Skip to content
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

Call procedures from terraform #2257

Open
jorwoods opened this issue Dec 12, 2023 · 1 comment
Open

Call procedures from terraform #2257

jorwoods opened this issue Dec 12, 2023 · 1 comment
Labels
category:resource feature-request Used to mark issues with provider's missing functionalities resource:procedure Issue connected to the snowflake_procedure resource

Comments

@jorwoods
Copy link

Terraform CLI and Provider Versions

Terraform v1.2.7
snowflake-labs/snowflake v0.76.0

Use Cases or Problem Statement

The team I am on uses stored procedures to produce tables that get consumed by other processes. When a stored procedure is created by Terraform, I looking for a way to have the procedure optionally called upon creation.

Proposal

The procedure should be called again if the body of the procedure changes or if initialization arguments to the procedure change.

How much impact is this issue causing?

Medium

Additional Information

Currently looking at using snowsql with a null resource to accomplish the goal if I can figure out how to pass credentials to it.

@jorwoods jorwoods added the feature-request Used to mark issues with provider's missing functionalities label Dec 12, 2023
@sfc-gh-jcieslak sfc-gh-jcieslak added category:resource resource:procedure Issue connected to the snowflake_procedure resource labels May 20, 2024
@sfc-gh-asawicki
Copy link
Collaborator

Hey @jorwoods.

Currently, I would recommend using the https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.100.0/docs/resources/execute (if you are on v0.100.0 or newer) or https://registry.terraform.io/providers/Snowflake-Labs/snowflake/0.99.0/docs/resources/unsafe_execute (for lower provider versions).

In our internal backlog, we have a task to add a dedicated resource for generic function invocation. It was not yet published on our public roadmap but was hinted in #1630 and #2630.

I will create an issue to track it soon. I will keep this issue opened till I do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:resource feature-request Used to mark issues with provider's missing functionalities resource:procedure Issue connected to the snowflake_procedure resource
Projects
None yet
Development

No branches or pull requests

3 participants