From 35f7199336709a4941dd26869feac3ed5da0a50f Mon Sep 17 00:00:00 2001 From: pavel-z1 Date: Sat, 16 May 2020 20:52:10 +0300 Subject: [PATCH] Fixed README examples with phpipam_address resource usage --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9ed4a10d..1fba722c 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ data "phpipam_first_free_address" "next_address" { // Reserve the address. Note that we use ignore_changes here to ensure that we // don't end up re-allocating this address on future Terraform runs. -resource "phpipam_address" { +resource "phpipam_address" "newip" { subnet_id = data.phpipam_subnet.subnet.subnet_id ip_address = data.phpipam_first_free_address.next_address.ip_address hostname = "tf-test-host.example.internal" @@ -441,7 +441,7 @@ data "phpipam_subnet" "subnet" { } // Reserve the address. -resource "phpipam_address" { +resource "phpipam_address" "newip"{ subnet_id = data.phpipam_subnet.subnet.subnet_id ip_address = "10.10.2.10" hostname = "tf-test-host.example.internal" @@ -465,7 +465,7 @@ data "phpipam_first_free_address" "next_address" { // Reserve the address. Note that we use ignore_changes here to ensure that we // don't end up re-allocating this address on future Terraform runs. -resource "phpipam_address" { +resource "phpipam_address" "newip" { subnet_id = data.phpipam_subnet.subnet.subnet_id ip_address = data.phpipam_first_free_address.next_address.ip_address hostname = "tf-test-host.example.internal" @@ -499,7 +499,7 @@ data "phpipam_first_free_address" "next_address" { // Reserve the address. Note that we use ignore_changes here to ensure that we // don't end up re-allocating this address on future Terraform runs. -resource "phpipam_address" { +resource "phpipam_address" "newip" { subnet_id = data.phpipam_subnet.subnet.subnet_id ip_address = data.phpipam_first_free_address.next_address.ip_address hostname = "tf-test-host.example.internal" @@ -762,7 +762,7 @@ data "phpipam_first_free_address" "next_address" { // Reserve the address. Note that we use ignore_changes here to ensure that we // don't end up re-allocating this address on future Terraform runs. -resource "phpipam_address" { +resource "phpipam_address" "newip" { subnet_id = data.phpipam_subnet.subnet.subnet_id ip_address = data.phpipam_first_free_address.next_address.ip_address hostname = "tf-test-host.example.internal"