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-3507 Document how to import a property #521

Open
stigok opened this issue Jan 31, 2024 · 4 comments
Open

DXE-3507 Document how to import a property #521

stigok opened this issue Jan 31, 2024 · 4 comments

Comments

@stigok
Copy link

stigok commented Jan 31, 2024

Affected Resource(s)

Please list the resources as a list, for example:

  • akamai_property

Instructions on how to import a resource of type akamai_property using the terraform import command is not documented on the property resource page https://techdocs.akamai.com/terraform/docs/pm-rc-property.

@lsadlon lsadlon changed the title Document how to import a property DXE-3507 Document how to import a property Feb 1, 2024
@lsadlon
Copy link

lsadlon commented Feb 1, 2024

Hi @stigok

Thank you for raising this issue. We will investigate it and get back to you.

BR,
Lukasz

@lkowalsk-akamai-com
Copy link
Contributor

Hi @stigok please check if this part of the documentation helps you: https://techdocs.akamai.com/terraform/docs/set-up-property-provisioning#import-a-property This shows much easier way to import the property using cli-terraform to do the export of a given property.

@stigok
Copy link
Author

stigok commented Feb 2, 2024

Yes, it helps, but it is not located where one expects to find that information. It would be ideal to keep the import instructions on a specific resource's documentation page, as this is what one expects when working with almost all other Terraform providers.

@estif95
Copy link

estif95 commented Aug 22, 2024

It would be really usefull! As a workarround we are using the documentation of the provider version 3.4.0. that is still working in the latest version of the provider: https://registry.terraform.io/providers/akamai/akamai/3.4.0/docs/resources/property#import

@lkowalsk-akamai-com the CLI can be usefull in some cases, specially when you don't have the Terraform configuration writen and want a massive export, but in our case, we are using Terraform modules to create the properties and we are importing old properties to our modules. I can modify the script that the CLI generates to match the way we are working, but I think it should be more easier if only documented as we expect on a provider.

The import block feature of Terraform is so usefull https://developer.hashicorp.com/terraform/language/import#syntax and it makes imports GitOps on every Terraform CICD. This allows teams to collaborate on "imports" tasks and follow what happens in a specific resource since it's creation (even if the resource was originally imported or created by terraform).

Thanks,
Esteve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants