You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

security-configuration.tf 943B

12345678910111213141516171819202122232425262728
  1. resource "akamai_appsec_configuration" "config" {
  2. name = "${var.user_id}-tflab"
  3. description = "Security config for TF lab"
  4. contract_id = var.contract_id
  5. group_id = var.group_id
  6. host_names = var.host_names
  7. }
  8. output "security_config_id" {
  9. value = akamai_appsec_configuration.config.config_id
  10. }
  11. data "akamai_appsec_configuration" "security_configuration" {
  12. name = "${var.user_id}-tflab"
  13. depends_on = [akamai_appsec_configuration.config]
  14. }
  15. output "security_configuration_staging_version" {
  16. value = data.akamai_appsec_configuration.security_configuration.staging_version
  17. }
  18. resource "akamai_appsec_activations" "appsecactivation" {
  19. config_id = akamai_appsec_configuration.config.config_id
  20. network = var.network
  21. note = "Terraform activation"
  22. notification_emails = [var.email]
  23. version = data.akamai_appsec_configuration.security_configuration.latest_version
  24. }