Closed zliang-akamai closed 3 weeks ago
Resolves #1446
Add RequiresReplace plan modifier to the linode_id attribute of linode_instance_shared_ips resource to fix the Linode ID update issue.
RequiresReplace
linode_id
linode_instance_shared_ips
make PKG_NAME=linode/instancesharedips int-test
terraform apply or tofu apply
terraform apply
tofu apply
resource "linode_instance" "primary" { label = "primary" image = "linode/ubuntu22.04" region = "us-mia" type = "g6-nanode-1" } resource "linode_instance" "secondary" { label = "secondary" image = "linode/ubuntu22.04" region = "us-mia" type = "g6-nanode-1" } resource "linode_instance_shared_ips" "share-primary" { linode_id = linode_instance.secondary.id addresses = [linode_instance_ip.primary.address] } resource "linode_instance_ip" "primary" { linode_id = linode_instance.primary.id }
resource "linode_instance" "primary" { label = "primary" image = "linode/ubuntu22.04" region = "us-mia" type = "g6-nanode-1" } resource "linode_instance" "tertiary" { label = "tertiary" image = "linode/ubuntu22.04" region = "us-mia" type = "g6-nanode-1" } resource "linode_instance_shared_ips" "share-primary" { linode_id = linode_instance.tertiary.id addresses = [linode_instance_ip.primary.address] } resource "linode_instance_ip" "primary" { linode_id = linode_instance.primary.id }
Checking the tertiary instance in Linode Cloud Manager, make sure the shared IP is in its networking configuration.
tertiary
Resolves #1446
š Description
Add
RequiresReplace
plan modifier to thelinode_id
attribute oflinode_instance_shared_ips
resource to fix the Linode ID update issue.āļø How to Test
Automated Testing
Manual Testing
Step 1
terraform apply
ortofu apply
Step 2
terraform apply
ortofu apply
Checking the
tertiary
instance in Linode Cloud Manager, make sure the shared IP is in its networking configuration.