terraform-provider-bigip icon indicating copy to clipboard operation
terraform-provider-bigip copied to clipboard

terraform fails when bigip is not ready

Open yossi-r opened this issue 5 years ago • 4 comments

i'm using terraform to deploy a bigip in AWS using, then i want to use the bigip provider to configure the bigip. the error i'm getting is: Error: BigIP provider requires address, username and password

the problem (as i understand it) is that when terraform apply, it starts with terraform plan which triggers the bigip provider (for a bigip that doesn't exist yet). for this use case we need the provider to be more relaxed regarding the inputs.

Thanks

yossi-r avatar Jan 16 '20 02:01 yossi-r

@yossi-r Can you please share the terraform config you are using?

RavinderReddyF5 avatar Jan 16 '20 06:01 RavinderReddyF5

@RavinderReddyF5 Got the same. Found this: https://github.com/hashicorp/terraform/issues/2430. Maybe a Terraform issue. I haven't found a workaround (except run terraform twice, once for the aws resources creation, then for the bigip resources).

amolari avatar Feb 12 '20 20:02 amolari

I got the same issue as well. Can you please fix it, since it is quite common do deploy the VM and do the DO directly in the same deployment. I use it in GCP:

provider "bigip" {
  address = "${google_compute_instance.bigip.network_interface.0.access_config.0.nat_ip}:8443"
  username = var.uname
  password = var.upassword
}

resource "bigip_do"  "bigip-a" {
     do_json = data.template_file.DO_json.rendered
     tenant_name = "sample_test1"
 }

rabru avatar Mar 27 '20 15:03 rabru

The issue @amolari mentioned above does follow this same pattern. In summary, it's providers being dependent on objects from other providers. There is no "depends_on" logic built into the providers themselves.

Investigating with TF-115

focrensh avatar Apr 07 '20 13:04 focrensh