RavinderReddyF5 / terraform-provider-bigip-version0.12

Terraform resources that can configure F5 BIGIP products
Mozilla Public License 2.0
0 stars 0 forks source link

[CLOSED] Feature request: Resource Importability for BIGIP Resources #151

Open RavinderReddyF5 opened 4 years ago

RavinderReddyF5 commented 4 years ago

Issue by DarthVader2409 Tuesday Jun 25, 2019 at 21:14 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/120


I understand that terraform can import one resource at a time and each resource in terraform must implement some basic logic to become importable. Currently, I don't see a way to import BIGIP resources like a ltm monitor or node.

RavinderReddyF5 commented 4 years ago

Comment by dannyk81 Tuesday Jun 25, 2019 at 21:53 GMT


All resources can be imported, they all implement the import function which in most cases is a simple pass-through to the read function.

I personally used the provider to import: virtual servers, pools, pool attachments (for which I implemented the import), nodes, snat pools and others.

Have you tried to import? have you encountered a specific issue?

RavinderReddyF5 commented 4 years ago

Comment by DarthVader2409 Wednesday Jun 26, 2019 at 14:57 GMT


Ah, I see. Thank you. I am new to terraform, I was going through the website and read that for those resources that support import, they are documented at the bottom of each resource documentation page, under the Import heading. https://www.terraform.io/docs/providers/bigip/r/bigip_ltm_pool_attachment.html But I didn't find any information about import in there.

RavinderReddyF5 commented 4 years ago

Comment by dannyk81 Wednesday Jun 26, 2019 at 16:15 GMT


Docs for this provider are not in the best of shapes, but the functionality is there.

I had a PR that was merged for the pool attachment import doc https://github.com/terraform-providers/terraform-provider-bigip/pull/88, not sure why it's not there on the website :man_shrugging:

RavinderReddyF5 commented 4 years ago

Comment by DarthVader2409 Monday Aug 19, 2019 at 20:08 GMT


@dannyk81 Hi Danny! Would you be able to help me with this- https://discuss.hashicorp.com/t/help-template-tf-and-user-data-yaml-tpl-flexible-assignment-of-variable/2444