terraform-provider-google icon indicating copy to clipboard operation
terraform-provider-google copied to clipboard

resource google_cloud_ids_endpoint

Open omelnyk1 opened this issue 3 years ago • 4 comments

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. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

New resource

With new resource I'd like to create/remove/update cloud IDS endpoint. Link on service: https://cloud.google.com/intrusion-detection-system

  • google_cloud_ids_endpoint

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.

# Create new Cloud IDS endpoint: https://cloud.google.com/intrusion-detection-system/docs/configuring-ids#api

resource "google_cloud_ids_endpoint" "this" {
  name                = "foobar"
  network             = "main"
  zone                = "us-central1-a"
  severity            = "MEDIUM"
  description         = "This is an example how to configure Cloud IDS endpoint"
  enable_traffic_logs = "true"

  labels = {
    env    = "staging"
    tenant = "main"
  }
}

Argument Reference

  • name - (Required) Name of the Cloud IDS endpoint.

  • network - (Required) Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). This field is required when creating the endpoint.

  • zone - (Required) The zone of the endpoint.

  • severity - (Required) The minimum alert severity level that is reported by the endpoint. Possible values are as follows:

    • INFORMATIONAL
    • LOW
    • MEDIUM
    • HIGH
    • CRITICAL
  • description - (Optional) Description of the endpoint.

  • enable_traffic_logs - (default: false) Whether to enable traffic logs on the endpoint. Enabling traffic logs can generate a large number of logs which can increase costs in Cloud Logging.

  • labels - (Optional) List of label KEY=VALUE pairs to add.

Attributes Reference

  • self_link - Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.
  • endpoint_forwarding_rule - URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.
  • endpoint - Internal IP address of the endpoint's network entry point.

References

https://cloud.google.com/intrusion-detection-system/docs/configuring-ids#api

  • #0000

omelnyk1 avatar Dec 06 '21 18:12 omelnyk1

Would love to see this get made 🙏

FalconerTC avatar May 03 '22 19:05 FalconerTC

would love to help work on this too. trying out this tool but would love it on tf

smbugua avatar Jul 19 '22 08:07 smbugua

+1 on this, often IDS is required for compliance, and having it configurable via Terraform makes it reproducible.

MarioIshac avatar Jul 20 '22 06:07 MarioIshac

+1 me too! IDS is required for compliance,

saburo9 avatar Jul 28 '22 05:07 saburo9

b/198475470

melinath avatar Sep 28 '22 17:09 melinath

This was resolved by https://github.com/GoogleCloudPlatform/magic-modules/pull/6617

melinath avatar Jan 10 '23 17:01 melinath

Thank you👍

omelnyk1 avatar Jan 11 '23 08:01 omelnyk1

Awesome

smbugua avatar Jan 11 '23 10:01 smbugua

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[bot] avatar Feb 11 '23 02:02 github-actions[bot]