Skip to content
Snippets Groups Projects
Commit 0e4e6362 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

simplified name

parent 5a480299
No related branches found
No related tags found
6 merge requests!6End of development,!5Develop,!4End of development,!3Develop,!2hot-fix: change readme.md,!1Develop
Pipeline #49297 passed
...@@ -14,9 +14,12 @@ After the resources provisionned with Terraform, Cloud-init will configure the i ...@@ -14,9 +14,12 @@ After the resources provisionned with Terraform, Cloud-init will configure the i
- Webtop - Webtop
After deployment, each resource can be accessed though HTTPS depending their count number : After deployment, each resource can be accessed though HTTPS depending their count number :
- https://desktop-0.lab-0-devrust.daag.alpha.grandlyon.com/ - https://desktop-1.rust1.daag.alpha.grandlyon.com/
- https://code-0.lab-0-devrust.daag.alpha.grandlyon.com/ - https://code-1.rust1.daag.alpha.grandlyon.com/
-
User :
- Username: abc
- Password: <Gitlab Stored>
Resources deployed : Resources deployed :
...@@ -39,7 +42,7 @@ Infrastructure is ready, the cloud-init script will run at boot 3 services and l ...@@ -39,7 +42,7 @@ Infrastructure is ready, the cloud-init script will run at boot 3 services and l
## Setup Terraform Locally ## Setup Terraform Locally
First, you must setup 2 local files for your variables : First, you must setup 2 local files for your variables :
C2sB13r12p1546dfsdf8cv151
### variables-local.tf ### variables-local.tf
Create a file **variables-local.tf** containing the following code : Create a file **variables-local.tf** containing the following code :
......
...@@ -14,7 +14,7 @@ resource "scaleway_instance_ip" "public_ip" { ...@@ -14,7 +14,7 @@ resource "scaleway_instance_ip" "public_ip" {
resource "scaleway_domain_record" "subdomain_record" { resource "scaleway_domain_record" "subdomain_record" {
count = var.INSTANCES_COUNT count = var.INSTANCES_COUNT
dns_zone = "daag.alpha.grandlyon.com" dns_zone = "daag.alpha.grandlyon.com"
name = "${var.ENVIRONMENT}${count.index}" name = "${var.ENVIRONMENT}-${count.index}"
type = "A" type = "A"
data = scaleway_instance_ip.public_ip[count.index].address data = scaleway_instance_ip.public_ip[count.index].address
ttl = 3600 ttl = 3600
...@@ -23,7 +23,7 @@ resource "scaleway_domain_record" "subdomain_record" { ...@@ -23,7 +23,7 @@ resource "scaleway_domain_record" "subdomain_record" {
resource "scaleway_domain_record" "host_subdomain_record" { resource "scaleway_domain_record" "host_subdomain_record" {
count = var.INSTANCES_COUNT count = var.INSTANCES_COUNT
dns_zone = "daag.alpha.grandlyon.com" dns_zone = "daag.alpha.grandlyon.com"
name = "*.${var.ENVIRONMENT}${count.index}" name = "*.${var.ENVIRONMENT}-${count.index}"
type = "A" type = "A"
data = scaleway_instance_ip.public_ip[count.index].address data = scaleway_instance_ip.public_ip[count.index].address
ttl = 3600 ttl = 3600
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment