You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an empty shared edge redirector cloudlet, the cloudlet itself is created (can be seen via Control Center, not via Terraform output) but a version is not created which causes immediate activations to fail.
When manually creating a shared edge redirector cloudlet via Control Center, a version is created.
Terraform and Akamai Terraform Provider Versions
Terraform v1.10.5
on linux_amd64
+ provider registry.terraform.io/akamai/akamai v7.0.0
terraform {
required_providers {
akamai={
source ="akamai/akamai"
version =">= 7.0.0, < 8.0.0"
}
}
}
data"akamai_cloudlets_edge_redirector_match_rule""default" {
}
resource"akamai_cloudlets_policy""policy" {
name="test_shared_empty"cloudlet_code="ER"group_id=1234567890# Set this to a valid group IDis_shared=truematch_rules=data.akamai_cloudlets_edge_redirector_match_rule.default.json
}
resource"akamai_cloudlets_policy_activation""staging" {
policy_id=akamai_cloudlets_policy.policy.idnetwork="staging"version=akamai_cloudlets_policy.policy.version
}
resource"akamai_cloudlets_policy_activation""production" {
policy_id=akamai_cloudlets_policy.policy.idnetwork="production"version=akamai_cloudlets_policy.policy.version
}
Output
data.akamai_cloudlets_edge_redirector_match_rule.default: Reading...
data.akamai_cloudlets_edge_redirector_match_rule.default: Read complete after 0s [id=data_akamai_cloudlets_edge_redirector_match_rule]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# akamai_cloudlets_policy.policy will be created
+ resource "akamai_cloudlets_policy" "policy" {
+ cloudlet_code = "ER"
+ cloudlet_id = (known after apply)
+ group_id = "1234567890"
+ id = (known after apply)
+ is_shared = true
+ name = "test_shared_empty"
+ version = (known after apply)
+ warnings = (known after apply)
# (1 unchanged attribute hidden)
}
# akamai_cloudlets_policy_activation.production will be created
+ resource "akamai_cloudlets_policy_activation" "production" {
+ id = (known after apply)
+ is_shared = (known after apply)
+ network = "prod"
+ policy_id = (known after apply)
+ status = (known after apply)
+ version = (known after apply)
}
# akamai_cloudlets_policy_activation.staging will be created
+ resource "akamai_cloudlets_policy_activation" "staging" {
+ id = (known after apply)
+ is_shared = (known after apply)
+ network = "staging"
+ policy_id = (known after apply)
+ status = (known after apply)
+ version = (known after apply)
}
Plan: 3 to add, 0 to change, 0 to destroy.
akamai_cloudlets_policy.policy: Creating...
akamai_cloudlets_policy.policy: Creation complete after 0s [id=261532]
Error: Missing required argument
with akamai_cloudlets_policy_activation.staging,
on main.tf line 24, in resource "akamai_cloudlets_policy_activation" "staging":
24: version = akamai_cloudlets_policy.policy.version
The argument "version" is required, but no definition was found.
Error: Missing required argument
with akamai_cloudlets_policy_activation.production,
on main.tf line 30, in resource "akamai_cloudlets_policy_activation" "production":
30: version = akamai_cloudlets_policy.policy.version
The argument "version" is required, but no definition was found.
The text was updated successfully, but these errors were encountered:
thank you for reporting this issue.
Unfortunately API behavior is the same as terraform. For the time being you need to provide valid match_rules to create policy version. You can extend your data and provide your values for redirect_url and status_code.
When creating an empty shared edge redirector cloudlet, the cloudlet itself is created (can be seen via Control Center, not via Terraform output) but a version is not created which causes immediate activations to fail.
When manually creating a shared edge redirector cloudlet via Control Center, a version is created.
Terraform and Akamai Terraform Provider Versions
Affected Resource(s)
akamai_cloudlets_policy
Terraform Configuration Files
Output
The text was updated successfully, but these errors were encountered: