-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
azurerm_storage_account
- add support for static website
#5649
azurerm_storage_account
- add support for static website
#5649
Conversation
Optional: true, | ||
ValidateFunc: validation.StringIsNotEmpty, | ||
}, | ||
"error_document_404_path": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why here a path postfix? In the azure cli it is 404-document and index-document. See https://docs.microsoft.com/de-de/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-cli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I named these arguments based on the names from giovanni
.
It's also worth noting in Azure PowerShell, the input is called ErrorDocument404Path
as well.
Any thoughts/preference from maintainers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Azure CLI tends to stray from the Azure API/Portal quite a bit to make the commands shorter - so I wouldn't use it as the source of truth here.
That said - I'd agree about making these consistent - perhaps that'd make the most sense as index_document
and error_404_document
(to allow for other errorcodes in the future)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @aqche
Thanks for this PR - I've taken a look through and left some comments inline but this is looking fairly good to me 👍
Thanks!
Optional: true, | ||
ValidateFunc: validation.StringIsNotEmpty, | ||
}, | ||
"error_document_404_path": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Azure CLI tends to stray from the Azure API/Portal quite a bit to make the commands shorter - so I wouldn't use it as the source of truth here.
That said - I'd agree about making these consistent - perhaps that'd make the most sense as index_document
and error_404_document
(to allow for other errorcodes in the future)?
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
Co-Authored-By: Tom Harvey <tombuildsstuff@users.noreply.github.com>
@tombuildsstuff thanks for the review, updated the code with your suggestions! Let me know what you think.
|
Fixed up the tflint errors, looks like website-lint is failing from something unrelated to this PR. edit: fixed after merging master in |
…form-provider-azurerm into storage_account_static_website
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @aqche
Thanks for pushing those changes / apologies for the delayed re-review here.
I've taken a look through and besides one minor thing this otherwise LGTM 👍
Thanks!
azurerm/internal/services/storage/resource_arm_storage_account.go
Outdated
Show resolved
Hide resolved
Co-Authored-By: Tom Harvey <tombuildsstuff@users.noreply.github.com>
Ignoring some known test failures (which'll be fixed via #5710) - the tests look good 👍 |
This has been released in version 2.0.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.0.0"
}
# ... other configuration ... |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Fixes: #1903
Adds support for static web hosting to
azurerm_storage_account
.