Open DhroovP opened 1 week ago
Quick update, I reverted to 6.3.0 and did not face this error. Hope that helps to pin down where this issue is coming from.
Hi @DhroovP
Thanks for reporting it. We are looking into that. Could you also tell us what other resource are you using in your configuration? Are you using akamai_property_rules_builder or json based rules?
BR, Lukasz
Hi @lsadlon
I am using the akamai_property_rules_template resource with JSON files. Let me know if I can provide any other information.
Thanks, DhroovP
I will delete my previous comment. My configuration was different on plan and apply 🤦♂️
Hi @DhroovP ,
instead of :
akamai_property.property[count.index].latest_version
You can use :
sum([akamai_property.property[count.index].production_version,1])
There is an issue with .latest_version ...
Hi @lsadlon,
Do we know why the production_version and staging_version values in the Tfstate are not the same as the latest_version? Please see the screenshot for reference.
Note : that both staging & production are activated on the latest version (so they should be equal to 1)
Regards,
Hi @chouraamine
I created internal ticket to investigate this issue. We will come back after we investigation.
BR, Lukasz
Seeing this bug (seems related to this) when I'm running
terraform apply
:This seems to happen when there are minor changes in the property, and a new version has to be created and then activated. My resource is:
Terraform and Akamai Terraform Provider Versions
Initializing provider plugins...
Affected Resource(s)
Expected Behavior
Latest version should have been activated in production.
Actual Behavior
Inconsistent final plan error.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
with extra arguments:-var activate_latest_on_staging=false -var activate_latest_on_production=true
with minor changes in the property itself (along with the version logic in the akamai_property_activation resource above)