Open rolmo opened 3 weeks ago
Hi @rolmo,
akamai_property_bootstrap resource does not solve circular dependency problem with property and datastream. It only enables walkaround of that issue. The limitation is that you can not simply use it with single apply. You need two applies:
Create and apply configuration containing:
Uncomment what was commented above and apply again. (Resources: 1 added, 2 changed, 0 destroyed.)
At this point this is the only way to have property with datastream created.
Please don't hesitate to ask if you need further help with this case.
Regards, Marcin
Hello Marcin,
Okay - I see. But the whole thing is very cumbersome!
It would be ideal if you had a documentation for this - akamai_property_bootstrap
is offered when exporting a propery in the Akamai CLI, but you can't find out the correct usage anywhere
Hi there,
In the past, there was the problem that you needed the ID of a property for the
akamai_datastream
, but the property needed the ID of aakamai_datastream
, which meant that the whole thing could not be rolled out automatically.As far as I understand it, the resource
akamai_property_bootstrap
should be used for this:akamai_property_bootstrap
, a property is created that does not have to contain any rules, but has a property ID.akamai_datastream
.akamai_property
and given rules that use the datastream via his ID.But this fails.
Terraform and Akamai Terraform Provider Versions
Terraform: v1.9.6 Akamai-Provider: 6.4.0
Affected Resource(s)
akamai_property_bootstrap
akamai_datastream
Terraform Configuration Files
Debug Output
The resource
resource "akamai_datastream" "test"
creates this error message:One or more properties (xxxxxx) are invalid. Provide properties that are authorized to be a part of this stream, and belong to the xxxx contract and xxxxx group ID."
(But the (empty) property is created, has the right group and the right contract)
Expected Behavior
The datastream should created, because the property and datastream are in the same contract/group.