Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXE-4164 Unable to avoid akamai_property_include recreation after successful import #575

Open
estif95 opened this issue Aug 21, 2024 · 1 comment

Comments

@estif95
Copy link

estif95 commented Aug 21, 2024

The documentation about akamai_property_include resource indicates the argument "product_id" is required. After successfully import the resource we are not able to manage the resource without recreating it. The argument "product_id" is not set during import phase but it is required, so we can't avoid the recreation of the include after successfully imported. Are we missing something?

Terraform and Akamai Terraform Provider Versions

Terraform v1.5.7 on linux_amd64
+ provider registry.terraform.io/akamai/akamai v6.3.0

Affected Resource(s)

Terraform Configuration Files

N/A

Debug Output

  # module.include.akamai_property_include.main must be replaced
-/+ resource "akamai_property_include" "main" {
      ~ id                        = "xxxxxxx" -> (known after apply)
      ~ latest_version     = 3 -> (known after apply)
      + product_id         = "prd_Fresca" # forces replacement

Panic Output

N/A

Expected Behavior

After importing the akamai_property_include we should be able to manage the resource via Terraform without recreating it.

Actual Behavior

After importing the akamai_property_include it must be recreated to set product_id attribute.

Steps to Reproduce

  1. create on Property Manager a new include on ION Standard Product
  2. import the new created resource via terraform import 'ctr_xxxx:grp_xxxxx:inc_xxxxxx'
  3. run terraform plan

Important Factoids

N/A

References

N/A

@estif95 estif95 changed the title Unable to manage akamai_property_include after import resource Unable to avoid akamai_property_include recreation after successful import Aug 21, 2024
@lsadlon
Copy link

lsadlon commented Aug 21, 2024

Hi @estif95,

Thanks for reporting this issue. I was able to reproduce it and we will investigate potential solution and go back to you. For now you can try to drop product_id from you configuration as it is not needed after import.

BR,
Lukasz

@lsadlon lsadlon changed the title Unable to avoid akamai_property_include recreation after successful import DXE-4164 Unable to avoid akamai_property_include recreation after successful import Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants