-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_security_center_storage_defender
: add scan_results_event_grid_topic_id
property
#26599
Conversation
…id_topic_id` property Closes: hashicorp#23607 Signed-off-by: patst <[email protected]>
Signed-off-by: patst <[email protected]>
Signed-off-by: patst <[email protected]>
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.
Thanks for this PR @patst. A few minor adjustments are needed, but otherwise this is looking good!
internal/services/securitycenter/security_center_storage_defender_resource.go
Outdated
Show resolved
Hide resolved
internal/services/securitycenter/security_center_storage_defender_resource.go
Outdated
Show resolved
Hide resolved
Signed-off-by: patst <[email protected]>
Co-authored-by: stephybun <[email protected]>
@stephybun thanks for the review! I applied the requested changes |
the unit tests pass locally on my client. Maybe an issue with the pipeline run? I am unsure what the exact issue is |
@stephybun don't want to stress you, but if you see anything still missing give me a sign :-) Thanks for your help! |
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.
@patst the acceptance tests are currently failing with the following error:
Error: creating Scope (Scope: "/subscriptions/*******/resourceGroups/acctestRG-storage-240729064442070764/providers/Microsoft.Storage/storageAccounts/acctestacc7su6p"): unexpected status 400 (400 Bad Request) with error: BadRequest: ScanResultsEventGridTopicResourceId can't be set if OnUpload.IsEnabled is false
with azurerm_security_center_storage_defender.test,
on terraform_plugin_test.tf line 45, in resource "azurerm_security_center_storage_defender" "test":
45: resource "azurerm_security_center_storage_defender" "test" {
creating Scope (Scope:
"/subscriptions/*******/resourceGroups/acctestRG-storage-240729064442070764/providers/Microsoft.Storage/storageAccounts/acctestacc7su6p"):
unexpected status 400 (400 Bad Request) with error: BadRequest:
ScanResultsEventGridTopicResourceId can't be set if OnUpload.IsEnabled is
false
I left a suggestion in line on what I think might fix the problem.
internal/services/securitycenter/security_center_storage_defender_resource.go
Outdated
Show resolved
Hide resolved
Signed-off-by: patst <[email protected]>
…/storage-defender
@stephybun can you rerun the integration tests? |
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.
Tests are looking good now, thanks @patst LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Add
scan_results_event_grid_topic_id
property toazurerm_security_center_storage_defender
resource.Closes: #23607
(The Github issue has an additional comment asking for the
scan_results_log_analytics_workspace_id
property as well. This is not included in this PR, because the current API-Version does not support that. It would involve an API-Version upgrade, which can be done separated from this change.Community Note
Description
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_security_center_storage_defender
: addscan_results_event_grid_topic_id
property [Add scan_results_eventgrid_topic_id argument in azurerm_security_center_storage_defender resource #23607]This is a (please select all that apply):
Related Issue(s)
Fixes #23607
Note
If this PR changes meaningfully during the course of review please update the title and description as required.