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

[Feature] - Add SiteShield to Akamai Terraform Provider

Open codezninja opened this issue 4 years ago • 3 comments

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

codezninja avatar Apr 15 '21 22:04 codezninja

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.

siwyd avatar Apr 16 '21 09:04 siwyd

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
  }
}

srgustafson8 avatar Aug 10 '23 16:08 srgustafson8

any update on this?

emoshaya avatar Apr 19 '24 22:04 emoshaya