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]: S3GOV not supported, S3 storage type hardcoded for AWS. This is a regression from 83.1 #3212

Closed
1 task
theknowest opened this issue Nov 21, 2024 · 6 comments
Assignees
Labels
bug Used to mark issues with provider's incorrect behavior

Comments

@theknowest
Copy link

Terraform CLI Version

1.6.6

Terraform Provider Version

98.0

Company Name

Snowflake

Terraform Configuration

resource "snowflake_storage_integration" "storage"{
  name                  = "S3GOVFEDRAMPHIGHTEST"
  type                  = "EXTERNAL_STAGE"
  storage_provider      = "S3GOV"
  storage_aws_role_arn  = "arn:aws:iam::001234567890:role/myrole"
  enabled               = true
  storage_allowed_locations = [
    "s3gov://mybucket1/mypath1/"
  ]
  storage_blocked_locations = [
    "s3gov://mybucket1/mypath1/sensitivedata/", "s3gov://mybucket2/mypath2/sensitivedata/"
  ]

}

Category

category:resource

Object type(s)

data_source:storage_integrations

Expected Behavior

When specifying an AWS storage integration type I am passing the S3GOV parameter and the terraform resource should pass that same s3gov provider type to Snowflake.

Actual Behavior

The hardcoded value S3 specified in the following file is being passed instead. This worked <= version 83.1 but has been broken since 92.0.link here I believe is the problematic code.

Steps to Reproduce

Build a basic terraform snowflake storage resource and specify the S3GOV type with S3 URLS. You will find the following error: Error: error creating storage integration: 003113 (42601): Invalid location error: Specified location 's3gov://mybucket1/mypath1/' does not match the prefix 's3://' expected by storage provider 'S3'.

How much impact is this issue causing?

High

Logs

No response

Additional Information

No response

Would you like to implement a fix?

  • Yeah, I'll take it 😎
@theknowest theknowest added the bug Used to mark issues with provider's incorrect behavior label Nov 21, 2024
@sfc-gh-jcieslak sfc-gh-jcieslak self-assigned this Nov 21, 2024
@sfc-gh-jcieslak
Copy link
Collaborator

Hey 👋
The solution is already proposed in #3213, we should merge it soon and the next released version should be able to handle other s3 protocols.

@theknowest
Copy link
Author

theknowest commented Nov 22, 2024 via email

sfc-gh-jcieslak added a commit that referenced this issue Nov 26, 2024
@sfc-gh-jcieslak
Copy link
Collaborator

Hey @theknowest 👋
Yesterday, we released a new provider version (v0.99.0) that contains a fix for this issue. Please try using the S3GOV S3 protocol and let me know if the fix helped. Thanks :)

@sfc-gh-jcieslak
Copy link
Collaborator

Hey @theknowest
Could you confirm that the issue in not happening in the latest version of the provider? Thank you!

@theknowest
Copy link
Author

theknowest commented Dec 9, 2024 via email

@sfc-gh-jcieslak
Copy link
Collaborator

I only need confirmation about v0.99.0 (as the fix was applied there). It's great to hear it works now. Closing the ticket.

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
Projects
None yet
Development

No branches or pull requests

2 participants