Skip to content

Commit

Permalink
azurerm_storage_account_sas Data Source - Prepare to update `signed…
Browse files Browse the repository at this point in the history
…_version` to 2022-11-02 for v4 (#26422)
  • Loading branch information
magodo authored Jul 8, 2024
1 parent d45f630 commit 9f5b94e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/services/storage/storage_account_sas_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,24 @@ import (

"github.com/hashicorp/go-azure-helpers/storage"
"github.com/hashicorp/terraform-provider-azurerm/helpers/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/features"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
)

const (
connStringAccountKeyKey = "AccountKey"
connStringAccountNameKey = "AccountName"
sasSignedVersion = "2017-07-29"
)

// This is an ACCOUNT SAS : https://docs.microsoft.com/en-us/rest/api/storageservices/Constructing-an-Account-SAS
// not Service SAS
func dataSourceStorageAccountSharedAccessSignature() *pluginsdk.Resource {
var sasSignedVersion = "2017-07-29"
if features.FourPointOhBeta() {
// TODO: Update the document as well
sasSignedVersion = "2022-11-02"
}
return &pluginsdk.Resource{
Read: dataSourceStorageAccountSasRead,

Expand Down

0 comments on commit 9f5b94e

Please sign in to comment.