diff --git a/README.md b/README.md index cba2e4796cca840b03693a6c20485ff8359b64a2..a1b8a057f6495a639242df9ca4af0f3ea5f3e392 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 8e447ec494d9a8091c0fdf2380c1fdf6347fe2a7..70d8fdf6ba28f55ec1953353419dbcc09118148e 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