akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

To use akamai_group, you need to specify contract. #5

Closed isss802 closed 2 years ago

isss802 commented 3 years ago

The content created by create-property will not work.

akamai terraform create-property xxxxxxxx
cat property.tf

data "akamai_group" "group" {
 name = "XXXXXXX"
}
terraform plan

Error: looking up group with name: "XXXXX": 'contractId' is required for non-default name: XXXXX
│
│   with data.akamai_group.group,
│   on property.tf line 11, in data "akamai_group" "group":
│   11: data "akamai_group" "group" {

Specifying contract works well.

vim property.tf

data "akamai_group" "group" {
 name = "XXXXX"
 contract = "ctr_XXXXX"
}
IanCassTwo commented 3 years ago

There's lots of other incompatibilities in 0.1.0 as well. 0.2.0 is going to be released shortly with many improvements.

isss802 commented 3 years ago

Thank you. I'll check if it's fixed in 0.2.0 and close it.

isss802 commented 2 years ago

It was updated and improved.