GuideReference
TrainingSupportCommunity

Policy activation

akamai_cloudlets_policy_activation

Activate a given version of a cloudlet policy. When activating a version on both the staging and production networks in the same configuration file, add the depends_on argument to the production resource and reference your staging activation

resource "akamai_cloudlets_policy_activation" "my_policy_activation_single" {
  policy_id = 12345
  network = "staging"
  version = 1
  associated_properties = ["12345", "67890", "23456"]
  timeouts {
  	default = "1h"
  }
}
resource "akamai_cloudlets_policy_activation" "my_policy_activation_both" {
  policy_id = 12345
  network = "production"
  version = 1
  associated_properties = ["12345", "67890", "23456"]
  timeouts {
  	default = "1h"
  }
  depends_on = [
    akamai_cloudlets_policy_activation.my_policy_activation_staging
  ]
}

Arguments

Pass all arguments to activate your cloudlet's policy on a network.

ArgumentRequiredDescription
policy_id‚úĒA cloudlet policy's ID.
network‚úĒThe network on which you are activating your client list. Either staging or production.
version‚úĒThe policy version to activate.
timeouts‚úĒUses a default argument to override the HashiCorp processing timeout of 20 minutes. Value is a string containing a number and its time reference, h, m, s. You can pass one, two, or all values. For example:
  • 1h3m5s
  • 2h5m
  • 3m
associated_propertiesA set of property IDs related to this cloudlet policy.
  • Required for non-shared policies.
  • Optional for shared policies.

Attribute

Returned to you is your activation's status.