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

[Feature]: missing resource "snowflake_session_policy"

Open arik103 opened this issue 8 months ago • 1 comments

Terraform CLI Version

1.7.5

Terraform Provider Version

0.92

Terraform Configuration

resource "snowflake_session_policy" "session_policy_test" {
  database                     = "DB"
  schema                       = "SCHEMA"
  name                         = "TEST_SESSION_POLICY"
  comment                      = "TEST_SESSION_POLICY"
  SESSION_IDLE_TIMEOUT_MINS    = 60
  SESSION_UI_IDLE_TIMEOUT_MINS = 60
}

Category

category:resource

Object type(s)

No response

Expected Behavior

expected for resources to be there.

Actual Behavior

git:(main) ✗ terraform plan Running plan in the remote backend. Output will stream here. Pressing Ctrl-C will stop streaming the logs, but will not stop the plan running remotely.

Preparing the remote plan... Waiting for the plan to start...

Terraform v1.7.5 on linux_amd64 Initializing plugins and modules... ╷ │ Error: Invalid resource type │ │ on session_policy.tf line 6, in resource "snowflake_session_policy" "session_policy_test": │ 6: resource "snowflake_session_policy" "session_policy_test" { │ │ The provider snowflake-labs/snowflake does not support resource type │ "snowflake_session_policy". ╵ Operation failed: failed running terraform plan (exit 1)

Steps to Reproduce

Run "terraform plan"

How much impact is this issue causing?

Medium

Logs

No response

Additional Information

I am able to see where is code is implemented for session policy but there is no resource available.

Would you like to implement a fix?

  • [ ] Yeah, I'll take it 😎

arik103 avatar Jun 15 '24 02:06 arik103