akamai / terraform-provider-akamai

Terraform Akamai provider
https://www.terraform.io/docs/providers/akamai/
Mozilla Public License 2.0
110 stars 97 forks source link

[Feature] - Add SiteShield to Akamai Terraform Provider #227

Open codezninja opened 3 years ago

codezninja commented 3 years ago

It would be helpful if we could pull SiteShield ip address lists through a datasource. Is this something we can add to the provider?

siwyd commented 3 years ago

And I don't want to hijack your ticket, but also for staging SiteShield IP's. When we automated this in our company to automatically update AWS security groups, it required speaking to two completely different Akamai API's to accomplish this for both production and staging.

srgustafson8 commented 1 year ago

Just adding some extra details to this as I raised a duplicate without realising:

API Docs:

https://techdocs.akamai.com/site-shield/reference/get-maps https://techdocs.akamai.com/site-shield/reference/get-map

An example of what i'd expect to see once implemented.

data "akamai_site_shield_maps" "this" {} # List Maps API resource

data "akamai_site_shield_map" "this" { # Get Map API resource
  id = data.akamai_site_shield_maps.this[0].id
}

resource "a_waf_rule" "this" {
...
  rule {
    action = "ALLOW"
    ip_range = data.akamai_site_shield_map.this.current_cidrs
  }
}
emoshaya commented 7 months ago

any update on this?