From 7dbf701204ede2a05a2cb3bf169d72bbe92241d3 Mon Sep 17 00:00:00 2001 From: outscale-rce Date: Wed, 31 Jul 2024 11:59:24 +0000 Subject: [PATCH 1/2] volume_link for volumes_link & upgrade version --- examples/public_vm/outscale.tf | 2 +- examples/public_vm/volume.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/public_vm/outscale.tf b/examples/public_vm/outscale.tf index b15868aab..6f92bcfce 100644 --- a/examples/public_vm/outscale.tf +++ b/examples/public_vm/outscale.tf @@ -2,7 +2,7 @@ terraform { required_providers { outscale = { source = "outscale/outscale" - version = ">= 0.11.0" + version = "1.0.0-rc.1" } } } diff --git a/examples/public_vm/volume.tf b/examples/public_vm/volume.tf index a6226319e..b0ffb51f7 100644 --- a/examples/public_vm/volume.tf +++ b/examples/public_vm/volume.tf @@ -5,7 +5,7 @@ resource "outscale_volume" "my_data" { size = var.volume_size_gib } -resource "outscale_volumes_link" "my_volume_link" { +resource "outscale_volume_link" "my_volume_link" { device_name = "/dev/xvdb" volume_id = outscale_volume.my_data.volume_id vm_id = outscale_vm.my_vm.vm_id From 100a766f33fc8690300407a4500778a1ab2a41df Mon Sep 17 00:00:00 2001 From: outscale-rce Date: Wed, 31 Jul 2024 14:46:48 +0000 Subject: [PATCH 2/2] adding sed for net_peering --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 76ca14478..ff20225cb 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,9 @@ sed -i 's/outscale_volumes_link/outscale_volume_link/g' terraform.tfstate sed -i '/"link_public_ip": {/, /},/d' terraform.tfstate sed -i '/"link_nic": {/, /},/d' terraform.tfstate sed -i '/"flexible_gpu_id": "/, /",/d' terraform.tfstate +sed -i '/"accepter_net": {/, /},/d' terraform.tfstate +sed -i '/"source_net": {/, /},/d' terraform.tfstate +sed -i '/"state": {/, /},/d' terraform.tfstate sed -i 's/outscale_volumes_link/outscale_volume_link/g' *.tf sed -i 's/flexible_gpu_id /flexible_gpu_ids /g' *.tf sed -i '/flexible_gpu_ids /s/= /= \[/' *.tf @@ -75,6 +78,9 @@ sed -i='' 's/outscale_volumes_link/outscale_volume_link/g' terraform.tfstate sed -i='' '/"link_public_ip": {/, /},/d' terraform.tfstate sed -i='' '/"link_nic": {/, /},/d' terraform.tfstate sed -i='' '/"flexible_gpu_id": "/, /",/d' terraform.tfstate +sed -i='' '/"accepter_net": {/, /},/d' terraform.tfstate +sed -i='' '/"source_net": {/, /},/d' terraform.tfstate +sed -i='' '/"state": {/, /},/d' terraform.tfstate sed -i='' 's/outscale_volumes_link/outscale_volume_link/g' *.tf sed -i='' 's/flexible_gpu_id /flexible_gpu_ids /g' *.tf sed -i='' '/flexible_gpu_ids /s/= /= \[/' *.tf