diff --git a/deployment/.terraform.lock.hcl b/deployment/.terraform.lock.hcl index 25aa7bb33..ac2d42a51 100644 --- a/deployment/.terraform.lock.hcl +++ b/deployment/.terraform.lock.hcl @@ -22,6 +22,26 @@ provider "registry.terraform.io/hashicorp/null" { ] } +provider "registry.terraform.io/hashicorp/random" { + version = "3.5.1" + constraints = "3.5.1" + hashes = [ + "h1:VSnd9ZIPyfKHOObuQCaKfnjIHRtR7qTw19Rz8tJxm+k=", + "zh:04e3fbd610cb52c1017d282531364b9c53ef72b6bc533acb2a90671957324a64", + "zh:119197103301ebaf7efb91df8f0b6e0dd31e6ff943d231af35ee1831c599188d", + "zh:4d2b219d09abf3b1bb4df93d399ed156cadd61f44ad3baf5cf2954df2fba0831", + "zh:6130bdde527587bbe2dcaa7150363e96dbc5250ea20154176d82bc69df5d4ce3", + "zh:6cc326cd4000f724d3086ee05587e7710f032f94fc9af35e96a386a1c6f2214f", + "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", + "zh:b6d88e1d28cf2dfa24e9fdcc3efc77adcdc1c3c3b5c7ce503a423efbdd6de57b", + "zh:ba74c592622ecbcef9dc2a4d81ed321c4e44cddf7da799faa324da9bf52a22b2", + "zh:c7c5cde98fe4ef1143bd1b3ec5dc04baf0d4cc3ca2c5c7d40d17c0e9b2076865", + "zh:dac4bad52c940cd0dfc27893507c1e92393846b024c5a9db159a93c534a3da03", + "zh:de8febe2a2acd9ac454b844a4106ed295ae9520ef54dc8ed2faf29f12716b602", + "zh:eab0d0495e7e711cca367f7d4df6e322e6c562fc52151ec931176115b83ed014", + ] +} + provider "registry.terraform.io/hashicorp/time" { version = "0.9.1" constraints = "0.9.1" diff --git a/deployment/main.tf b/deployment/main.tf index 0f4f03c78..eb9206f0e 100644 --- a/deployment/main.tf +++ b/deployment/main.tf @@ -26,8 +26,10 @@ resource "scaleway_instance_server" "main" { security_group_id = scaleway_instance_security_group.main.id } +resource "random_pet" "main" {} + resource "scaleway_object_bucket" "main" { - name = "data-inclusion-datalake-${var.environment}" + name = "data-inclusion-datalake-${var.environment}-${random_integer.main.id}" } data "scaleway_account_project" "main" { diff --git a/deployment/provider.tf b/deployment/provider.tf index f59a01732..dd94c6231 100644 --- a/deployment/provider.tf +++ b/deployment/provider.tf @@ -12,6 +12,10 @@ terraform { source = "hashicorp/null" version = "3.2.1" } + random = { + source = "hashicorp/random" + version = "3.5.1" + } } }