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

[Bug]: Account parameter resource does not accept METRIC_LEVEL as key #3375

Open
1 task
Andrew-Lindsay42 opened this issue Feb 4, 2025 · 1 comment
Open
1 task
Assignees
Labels
bug Used to mark issues with provider's incorrect behavior resource:account_parameter Issue connected to the snowflake_account_parameter resource

Comments

@Andrew-Lindsay42
Copy link

Terraform CLI Version

1.5.7

Terraform Provider Version

1.0.2

Company Name

No response

Terraform Configuration

resource "snowflake_account_parameter" "account_metric_level" {
  key   = "METRIC_LEVEL"
  value = "ALL"
}

Category

category:resource

Object type(s)

resource:account_parameter

Expected Behavior

Terraform should run the command ALTER ACCOUNT SET METRIC_LEVEL = ALL

Actual Behavior

The Terraform plan is a success:

# snowflake_account_parameter.account_metric_level will be created
  + resource "snowflake_account_parameter" "account_metric_level" {
      + id    = (known after apply)
      + key   = "METRIC_LEVEL"
      + value = "ALL"
    }

Plan: 1 to add, 0 to change, 0 to destroy.

But the Terraform apply fails:

Error: Invalid object parameter: METRIC_LEVEL
│ 
│   with snowflake_account_parameter.account_metric_level,
│   on account_parameters.tf line 64, in resource "snowflake_account_parameter" "account_metric_level":
│   64: resource "snowflake_account_parameter" "account_metric_level" {

Steps to Reproduce

Just copy and paste the provided resource block and try to run terraform apply.

How much impact is this issue causing?

Low

Logs

No response

Additional Information

METRIC_LEVEL is listed as a valid value for the account parameter key in the documentation.

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@Andrew-Lindsay42 Andrew-Lindsay42 added the bug Used to mark issues with provider's incorrect behavior label Feb 4, 2025
@sfc-gh-jcieslak sfc-gh-jcieslak self-assigned this Feb 4, 2025
@sfc-gh-jcieslak
Copy link
Collaborator

sfc-gh-jcieslak commented Feb 4, 2025

Hey @Andrew-Lindsay42 👋
The problem should be addressed by #3376. This change will be available in the next release, which should happen today, so bumping the version after we publish it, should fix the problem.

sfc-gh-jcieslak added a commit that referenced this issue Feb 4, 2025
## Changes
- Add missing support for metric level account parameter #3375
- Add object renaming guide
@sfc-gh-jcieslak sfc-gh-jcieslak added the resource:account_parameter Issue connected to the snowflake_account_parameter resource label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior resource:account_parameter Issue connected to the snowflake_account_parameter resource
Projects
None yet
Development

No branches or pull requests

2 participants