From 0e4e636254bb10c0be89d2d2e15ee34a4121847a Mon Sep 17 00:00:00 2001 From: Nathan Rodet <nrodet@grandlyon.com> Date: Fri, 23 Dec 2022 15:04:45 +0100 Subject: [PATCH] simplified name --- README.md | 11 +++++++---- terraform/main.tf | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cba2e47..a1b8a05 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,12 @@ After the resources provisionned with Terraform, Cloud-init will configure the i - Webtop After deployment, each resource can be accessed though HTTPS depending their count number : -- https://desktop-0.lab-0-devrust.daag.alpha.grandlyon.com/ -- https://code-0.lab-0-devrust.daag.alpha.grandlyon.com/ -- +- https://desktop-1.rust1.daag.alpha.grandlyon.com/ +- https://code-1.rust1.daag.alpha.grandlyon.com/ + +User : +- Username: abc +- Password: <Gitlab Stored> Resources deployed : @@ -39,7 +42,7 @@ Infrastructure is ready, the cloud-init script will run at boot 3 services and l ## Setup Terraform Locally First, you must setup 2 local files for your variables : - +C2sB13r12p1546dfsdf8cv151 ### variables-local.tf Create a file **variables-local.tf** containing the following code : diff --git a/terraform/main.tf b/terraform/main.tf index 8e447ec..70d8fdf 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -14,7 +14,7 @@ resource "scaleway_instance_ip" "public_ip" { resource "scaleway_domain_record" "subdomain_record" { count = var.INSTANCES_COUNT dns_zone = "daag.alpha.grandlyon.com" - name = "${var.ENVIRONMENT}${count.index}" + name = "${var.ENVIRONMENT}-${count.index}" type = "A" data = scaleway_instance_ip.public_ip[count.index].address ttl = 3600 @@ -23,7 +23,7 @@ resource "scaleway_domain_record" "subdomain_record" { resource "scaleway_domain_record" "host_subdomain_record" { count = var.INSTANCES_COUNT dns_zone = "daag.alpha.grandlyon.com" - name = "*.${var.ENVIRONMENT}${count.index}" + name = "*.${var.ENVIRONMENT}-${count.index}" type = "A" data = scaleway_instance_ip.public_ip[count.index].address ttl = 3600 -- GitLab