Open alexkunde opened 7 months ago
Hello @alexkunde ,
Appsec documentation suggests obtaining of the group id from data.akamai_appsec_contracts_groups.contracts_groups datasource: https://techdocs.akamai.com/terraform/docs/as-ds-contracts-groups
If you would like to use data.akamai_group.group.id I would suggest parsing it: parseint(replace(data.akamaigroup.group.id, "grp", ""), 10)
Best regards, Cyryl
Hi @ckulinsk, thank you for the workaround, but wouldn't it be preferable to not have to use additional functions to implement this with the data field?
Best, Alexander
Terraform and Akamai Terraform Provider Versions
Affected Resource(s)
Please list the resources as a list, for example:
akamai_appsec_configuration
data.akamai_group.group.id
Expected Behavior
When using
akamai_appsec_configuration
we need the group_id, which should be possible to get fromdata.akamai_group.group.id
Actual Behavior
akamai_appsec_configuration
only expects the group id to be the numerical part whereasdata.akamai_group.group.id
will provide the number plus prefixSteps to Reproduce
Please list the steps required to reproduce the issue, for example:
data.akamai_group.group.id
akamai_appsec_configuration
group_id = data.akamai_group.group.id
terraform plan