terraform-provider-snowflake icon indicating copy to clipboard operation
terraform-provider-snowflake copied to clipboard

Stremlit

Open JohnCalhoun opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Support for Streamlit in snowflake

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I want to create streamlit app in snowflake

Describe the solution you'd like A streamlit resource

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

JohnCalhoun avatar Jul 07 '23 14:07 JohnCalhoun

I agree this is a good feature request and one that we plan to implement in the coming quarter.

sfc-gh-swinkler avatar Jul 25 '23 23:07 sfc-gh-swinkler

Is there any updated ETA on this feature?

danielhstahl avatar Dec 19 '23 17:12 danielhstahl

Hey @danielhstahl.

We will share our roadmap soon. Despite what was written above, we will start work on it no earlier than February/March.

sfc-gh-asawicki avatar Dec 20 '23 09:12 sfc-gh-asawicki

Would a part of this work be to allow granting usage access to all and future streamlit apps in a schema to account roles? Currently, streamlit isn't included in the list of allowed plural object types.

ric-sylvera avatar Feb 21 '24 12:02 ric-sylvera

Correct me if I'm wrong but I think it would be as simple as this?

diff --git a/pkg/resources/grant_helpers.go b/pkg/resources/grant_helpers.go
index df015d0f..27677faf 100644
--- a/pkg/resources/grant_helpers.go
+++ b/pkg/resources/grant_helpers.go
@@ -425,6 +425,7 @@ func ValidGrantedObjectType() schema.SchemaValidateDiagFunc {
 		sdk.ObjectTypeTag.String(),
 		sdk.ObjectTypeStage.String(),
 		sdk.ObjectTypeStream.String(),
+		sdk.ObjectTypeStreamlit.String(),
 		sdk.ObjectTypeTable.String(),
 		sdk.ObjectTypeExternalTable.String(),
 		sdk.ObjectTypeTask.String(),
@@ -455,6 +456,7 @@ func ValidGrantedPluralObjectType() schema.SchemaValidateDiagFunc {
 			sdk.PluralObjectTypeTags.String(),
 			sdk.PluralObjectTypeStages.String(),
 			sdk.PluralObjectTypeStreams.String(),
+			sdk.PluralObjectTypeStreamlits.String(),
 			sdk.PluralObjectTypeTables.String(),
 			sdk.PluralObjectTypeExternalTables.String(),
 			sdk.PluralObjectTypeTasks.String(),

ric-sylvera avatar Feb 21 '24 13:02 ric-sylvera

Hi @JohnCalhoun @danielhstahl @ric-sylvera 👋 Streamlits have been added in v0.94 release. Please follow our migration guide.

sfc-gh-jmichalak avatar Jul 29 '24 08:07 sfc-gh-jmichalak