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

Feature request: Set cache control for Storage Account Blob #6236

Closed
rjkokko opened this issue Mar 24, 2020 · 6 comments · Fixed by #13946
Closed

Feature request: Set cache control for Storage Account Blob #6236

rjkokko opened this issue Mar 24, 2020 · 6 comments · Fixed by #13946

Comments

@rjkokko
Copy link

rjkokko commented Mar 24, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Support for cache control headers for Storage Account blobs.

New or Affected Resource(s)

  • azurerm_storage_blob

References

@rjkokko
Copy link
Author

rjkokko commented Mar 26, 2020

A workaround for this issue is to use a provisioner and azure-cli.

resource "azurerm_storage_blob" "foo" {
  name                   = "foo"
  storage_account_name   = "mystorageaccount"
  storage_container_name = "mycontainer"
  type                   = "Block"
  source                 = "foo.json"
  provisioner "local-exec" {
    command = "az storage blob update --account-name ${self.storage_account_name} --container-name ${self.storage_container_name} --name ${self.name} --content-cache-control 'no-store'"
  }
}

@tombuildsstuff
Copy link
Member

Giovanni supports this (via the SetProperties method) - so this should be possible to add 👍

@jmostella
Copy link

Are there any plans to fix this issue from the Terraform side? Possibly someone else has decided to work on this?

@SymbioticKilla
Copy link

Any Updates?

katbyte pushed a commit that referenced this issue Nov 2, 2021
Fixes #6236

Adds the ability to set cache_control for blobs in a storage_account
@katbyte katbyte added this to the v2.84.0 milestone Nov 2, 2021
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

This functionality has been released in v2.84.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Dec 6, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants