diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3a3f814..f6d7fd4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,7 @@ on: env: AWS_REGION: us-west-1 AWS_ROLE: arn:aws:iam::270074865685:role/terraform-module-ci-test + ZONE: ${{secrets.ZONE}} permissions: write-all @@ -66,7 +67,8 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_OWNER: rancher - IDENTIFIER: ${{github.job}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}} + IDENTIFIER: ${{github.run_id}} + ZONE: ${{env.ZONE}} - name: 'ImageCheck' run: ./validate-image.sh if: steps.release-please.outputs.pr diff --git a/examples/basic/basic/main.tf b/examples/basic/basic/main.tf index adab379..318ea30 100644 --- a/examples/basic/basic/main.tf +++ b/examples/basic/basic/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "basic" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/basic/directnetworkdomain/main.tf b/examples/basic/directnetworkdomain/main.tf index 7c5c7dd..f1b17d4 100644 --- a/examples/basic/directnetworkdomain/main.tf +++ b/examples/basic/directnetworkdomain/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "directnetworkdomain" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/basic/directnetworkonly/main.tf b/examples/basic/directnetworkonly/main.tf index 71aadcc..b185b0a 100644 --- a/examples/basic/directnetworkonly/main.tf +++ b/examples/basic/directnetworkonly/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "directnetworkonly" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/basic/directssheip/main.tf b/examples/basic/directssheip/main.tf index 4572773..deda850 100644 --- a/examples/basic/directssheip/main.tf +++ b/examples/basic/directssheip/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "directssheip" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/basic/directsshsubnet/main.tf b/examples/basic/directsshsubnet/main.tf index a1ad560..0124d6b 100644 --- a/examples/basic/directsshsubnet/main.tf +++ b/examples/basic/directsshsubnet/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "directsshsubnet" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/basic/indirectdomain/main.tf b/examples/basic/indirectdomain/main.tf index cc55d8d..408480d 100644 --- a/examples/basic/indirectdomain/main.tf +++ b/examples/basic/indirectdomain/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "indirectdomain" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/basic/indirectonly/main.tf b/examples/basic/indirectonly/main.tf index 275045c..9350c82 100644 --- a/examples/basic/indirectonly/main.tf +++ b/examples/basic/indirectonly/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "indirect" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/basic/privateip/main.tf b/examples/basic/privateip/main.tf index e9cad8b..3668505 100644 --- a/examples/basic/privateip/main.tf +++ b/examples/basic/privateip/main.tf @@ -12,7 +12,7 @@ locals { category = "basic" example = "basic" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" # must be within the vpc cidr range, AWS reserves .225-.229 and .238 diff --git a/examples/os/liberty7/main.tf b/examples/os/liberty7/main.tf index 00a8167..5b636bb 100644 --- a/examples/os/liberty7/main.tf +++ b/examples/os/liberty7/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "liberty7" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "liberty-7" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/rhel8/main.tf b/examples/os/rhel8/main.tf index c21fee9..ccff1a9 100644 --- a/examples/os/rhel8/main.tf +++ b/examples/os/rhel8/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "rhel8" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "rhel-8" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/rhel8cis/main.tf b/examples/os/rhel8cis/main.tf index 4c03a4d..08d5f9b 100644 --- a/examples/os/rhel8cis/main.tf +++ b/examples/os/rhel8cis/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "rhel8cis" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "rhel-8-cis" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/rhel9/main.tf b/examples/os/rhel9/main.tf index e5753ca..515cff7 100644 --- a/examples/os/rhel9/main.tf +++ b/examples/os/rhel9/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "rhel9" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "rhel-9" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/rocky8/main.tf b/examples/os/rocky8/main.tf index 14d1fb3..8b50f51 100644 --- a/examples/os/rocky8/main.tf +++ b/examples/os/rocky8/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "rocky8" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "rocky-8" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/slemicro55byos/main.tf b/examples/os/slemicro55byos/main.tf index ed78d7c..d9f6abd 100644 --- a/examples/os/slemicro55byos/main.tf +++ b/examples/os/slemicro55byos/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "slemicro55byos" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sle-micro-55-byos" # BYOS = Bring Your Own Subscription, only use this if you have a subscription with SUSE or plan to get one directly rather than going through AWS vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/slemicro55llc/main.tf b/examples/os/slemicro55llc/main.tf index 2258ff5..1b106d0 100644 --- a/examples/os/slemicro55llc/main.tf +++ b/examples/os/slemicro55llc/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "slemicro55llc" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sle-micro-55-llc" # llc refers to SUSE subsidiary incorporation type, in general the LLC images are used in the US and Asia-Pacific vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/slemicro55ltd/main.tf b/examples/os/slemicro55ltd/main.tf index 80f92bf..55ce34a 100644 --- a/examples/os/slemicro55ltd/main.tf +++ b/examples/os/slemicro55ltd/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "slemicro55ltd" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sle-micro-55-ltd" # ltd refers to SUSE subsidiary incorporation type, in general the LTD images are used in the Europe, the Middle East, and Africa (EMEA) vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/sles15/main.tf b/examples/os/sles15/main.tf index 9d3526e..c1f2ebe 100644 --- a/examples/os/sles15/main.tf +++ b/examples/os/sles15/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "sles15" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/sles15byos/main.tf b/examples/os/sles15byos/main.tf index 9fee17e..bdc3f14 100644 --- a/examples/os/sles15byos/main.tf +++ b/examples/os/sles15byos/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "sles15byos" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sles-15-byos" # BYOS = Bring Your Own Subscription, only use this if you have a subscription with SUSE or plan to get one directly rather than going through AWS vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/sles15cis/main.tf b/examples/os/sles15cis/main.tf index dfc1506..32cd087 100644 --- a/examples/os/sles15cis/main.tf +++ b/examples/os/sles15cis/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "sles15cis" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "sles-15-cis" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/ubuntu20/main.tf b/examples/os/ubuntu20/main.tf index cec08e0..4565c1c 100644 --- a/examples/os/ubuntu20/main.tf +++ b/examples/os/ubuntu20/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "ubuntu20" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "ubuntu-20" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/os/ubuntu22/main.tf b/examples/os/ubuntu22/main.tf index c24ac7f..ab81ff5 100644 --- a/examples/os/ubuntu22/main.tf +++ b/examples/os/ubuntu22/main.tf @@ -12,7 +12,7 @@ locals { category = "os" example = "ubuntu22" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" username = "tf-${local.identifier}" image = "ubuntu-22" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 diff --git a/examples/region/useast1/main.tf b/examples/region/useast1/main.tf index e71cbe4..68e09c1 100644 --- a/examples/region/useast1/main.tf +++ b/examples/region/useast1/main.tf @@ -13,7 +13,7 @@ locals { category = "region" example = "useast1" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/region/useast2/main.tf b/examples/region/useast2/main.tf index e594a47..f7a774c 100644 --- a/examples/region/useast2/main.tf +++ b/examples/region/useast2/main.tf @@ -13,7 +13,7 @@ locals { category = "region" example = "useast2" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/region/uswest1/main.tf b/examples/region/uswest1/main.tf index 1106a4b..c37a2d3 100644 --- a/examples/region/uswest1/main.tf +++ b/examples/region/uswest1/main.tf @@ -13,7 +13,7 @@ locals { category = "region" example = "uswest1" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/region/uswest2/main.tf b/examples/region/uswest2/main.tf index f2f373c..8bb22c1 100644 --- a/examples/region/uswest2/main.tf +++ b/examples/region/uswest2/main.tf @@ -13,7 +13,7 @@ locals { category = "region" example = "uswest2" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/select/all/main.tf b/examples/select/all/main.tf index 411a1b1..b97e32c 100644 --- a/examples/select/all/main.tf +++ b/examples/select/all/main.tf @@ -12,7 +12,7 @@ locals { category = "select" example = "server" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" } diff --git a/examples/select/server/main.tf b/examples/select/server/main.tf index 99a410c..9de85a5 100644 --- a/examples/select/server/main.tf +++ b/examples/select/server/main.tf @@ -12,7 +12,7 @@ locals { category = "select" example = "server" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/size/large/main.tf b/examples/size/large/main.tf index 6ca00a0..ee1c64d 100644 --- a/examples/size/large/main.tf +++ b/examples/size/large/main.tf @@ -12,7 +12,7 @@ locals { category = "size" example = "large" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/size/medium/main.tf b/examples/size/medium/main.tf index cb08418..66ade8b 100644 --- a/examples/size/medium/main.tf +++ b/examples/size/medium/main.tf @@ -12,7 +12,7 @@ locals { category = "size" example = "medium" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/size/small/main.tf b/examples/size/small/main.tf index d36bddc..9dd22a1 100644 --- a/examples/size/small/main.tf +++ b/examples/size/small/main.tf @@ -12,7 +12,7 @@ locals { category = "size" example = "small" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/size/xl/main.tf b/examples/size/xl/main.tf index 81f89c0..52829ff 100644 --- a/examples/size/xl/main.tf +++ b/examples/size/xl/main.tf @@ -12,7 +12,7 @@ locals { category = "size" example = "xl" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28" diff --git a/examples/size/xxl/main.tf b/examples/size/xxl/main.tf index a61030d..34bbe93 100644 --- a/examples/size/xxl/main.tf +++ b/examples/size/xxl/main.tf @@ -12,7 +12,7 @@ locals { category = "size" example = "xxl" email = "terraform-ci@suse.com" - project_name = "tf-${substr(md5(join("-", [local.category, local.example])), 0, 5)}-${local.identifier}" + project_name = "tf-${substr(md5(join("-", [local.category, local.example, random_pet.server.id])), 0, 5)}-${local.identifier}" image = "sles-15" vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254 subnet_cidr = "10.0.255.224/28"