hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.28k stars 1.72k forks source link

google_security_scanner_scan_config add support for fixed ip #6461

Open jenshonkan84 opened 4 years ago

jenshonkan84 commented 4 years ago

Community Note

Description

Add support for "Runs scan from fixed IPs"

New or Affected Resource(s)

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_security_scanner_scan_config" "scan-config" {
  provider         = google-beta
  display_name     = "terraform-scan-config"
  starting_urls    = ["http://${google_compute_address.scanner_static_ip.address}"]
  target_platforms = ["COMPUTE"]
  fixed_ip     = true
}

References

b/299442467

danawillow commented 4 years ago

@jenshonkan84 can you link to the documentation for the feature? A gcloud command that makes it work would be helpful here.

jenshonkan84 commented 4 years ago

Sorry for late replay. Here is the documentation: https://cloud.google.com/security-command-center/docs/how-to-web-security-scanner-custom-scans?&_ga=2.259902730.-1600235768.1588667725#firewall-configuration

ScottSuarez commented 1 year ago

Should be workable after reviewing https://cloud.google.com/security-command-center/docs/reference/web-security-scanner/rest/v1/projects.scanConfigs