Closed gricuk closed 4 years ago
I am already using it with Terraform 0.13 and it is working like expected. Maybe if it is not working for, you have to setup the provider plugin locally as described by the new terraform hierarchy structure requirements.
Hi @lord-kyron , thank you for answer. But I have one more question.
terraform {
required_providers {
phpipam = {
source = "mydomain.io/test/phpipam"
version = "1.1"
}
}
And when I trying to pass provider to module I got error
terraform init
Initializing modules...
Initializing the backend...
Initializing provider plugins...
- Using previously-installed hashicorp/aws v2.53.0
- Using previously-installed mydomain.io/test/phpipam v1.1.0
- Using previously-installed hashicorp/vsphere v1.22.0
- Finding latest version of hashicorp/phpipam...
module.tf
module "phpipam_first" {
source = "./phpipam"
workspace = "first"
phpipam_subnet = data.phpipam_subnet.fsn1_test_subnet.subnet_id
}
data "phpipam_first_free_address" "next_address" {
subnet_id = var.phpipam_subnet
}
resource "phpipam_address" "new_ip" {
subnet_id = var.phpipam_subnet
ip_address = data.phpipam_first_free_address.next_address.ip_address
hostname = "asddasd"
description = "Managed by Terraform"
}
Maybe you know why it happening.
P.S Your provider works without module structure with tf 0.13.
Hi,
Just put the terraform { required_providers { phpipam = { source = "mydomain.io/test/phpipam" version = "1.1" } }
in the module.tf, not the main.tf and try again.
Hi @lord-kyron , it works, thanks!
Terraform has released 0.13. Do you plan to support this version?