Skip to content

Commit 35f7199

Browse files
committed
Fixed README examples with phpipam_address resource usage
1 parent e909484 commit 35f7199

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ data "phpipam_first_free_address" "next_address" {
325325
326326
// Reserve the address. Note that we use ignore_changes here to ensure that we
327327
// don't end up re-allocating this address on future Terraform runs.
328-
resource "phpipam_address" {
328+
resource "phpipam_address" "newip" {
329329
subnet_id = data.phpipam_subnet.subnet.subnet_id
330330
ip_address = data.phpipam_first_free_address.next_address.ip_address
331331
hostname = "tf-test-host.example.internal"
@@ -441,7 +441,7 @@ data "phpipam_subnet" "subnet" {
441441
}
442442
443443
// Reserve the address.
444-
resource "phpipam_address" {
444+
resource "phpipam_address" "newip"{
445445
subnet_id = data.phpipam_subnet.subnet.subnet_id
446446
ip_address = "10.10.2.10"
447447
hostname = "tf-test-host.example.internal"
@@ -465,7 +465,7 @@ data "phpipam_first_free_address" "next_address" {
465465
466466
// Reserve the address. Note that we use ignore_changes here to ensure that we
467467
// don't end up re-allocating this address on future Terraform runs.
468-
resource "phpipam_address" {
468+
resource "phpipam_address" "newip" {
469469
subnet_id = data.phpipam_subnet.subnet.subnet_id
470470
ip_address = data.phpipam_first_free_address.next_address.ip_address
471471
hostname = "tf-test-host.example.internal"
@@ -499,7 +499,7 @@ data "phpipam_first_free_address" "next_address" {
499499
500500
// Reserve the address. Note that we use ignore_changes here to ensure that we
501501
// don't end up re-allocating this address on future Terraform runs.
502-
resource "phpipam_address" {
502+
resource "phpipam_address" "newip" {
503503
subnet_id = data.phpipam_subnet.subnet.subnet_id
504504
ip_address = data.phpipam_first_free_address.next_address.ip_address
505505
hostname = "tf-test-host.example.internal"
@@ -762,7 +762,7 @@ data "phpipam_first_free_address" "next_address" {
762762
763763
// Reserve the address. Note that we use ignore_changes here to ensure that we
764764
// don't end up re-allocating this address on future Terraform runs.
765-
resource "phpipam_address" {
765+
resource "phpipam_address" "newip" {
766766
subnet_id = data.phpipam_subnet.subnet.subnet_id
767767
ip_address = data.phpipam_first_free_address.next_address.ip_address
768768
hostname = "tf-test-host.example.internal"

0 commit comments

Comments
 (0)