Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NOT_AVAILABLE - scaleway attack instances template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
systemes-dinformation
alpha
pocs
Cloud Machinist
cloud machinist templates
NOT_AVAILABLE - scaleway attack instances template
Commits
3bb6f203
Commit
3bb6f203
authored
1 year ago
by
Nathan RODET
Browse files
Options
Downloads
Patches
Plain Diff
Added VOLUME for instance and input type for front
parent
70ddfe6c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
terraform/main.tf
+1
-1
1 addition, 1 deletion
terraform/main.tf
terraform/variables-gitlab.tf
+1
-1
1 addition, 1 deletion
terraform/variables-gitlab.tf
vars-deployment.json
+13
-1
13 additions, 1 deletion
vars-deployment.json
with
17 additions
and
3 deletions
README.md
+
2
−
0
View file @
3bb6f203
...
...
@@ -33,6 +33,8 @@ Once it's done, you will need to create the variable bellow :
-
**TF_VAR_SCW_PROJECT_ID**
: Project ID from your Scaleway project.
-
**TF_VAR_SCW_SECRET_KEY**
: Scaleway Secret Key.
-
**TF_VAR_USER_PASSWORD**
: User password for accessing services and instances.
-
**TF_VAR_INSTANCE_TYPE**
: A type of instance to deploy. (DEV-S...)
-
**TF_VAR_VOLUME_DISK**
: A number of GB for the volume attached to the instance.
## Step 3 : Every is set up, deployment is coming !
...
...
This diff is collapsed.
Click to expand it.
terraform/main.tf
+
1
−
1
View file @
3bb6f203
...
...
@@ -75,7 +75,7 @@ resource "scaleway_instance_server" "user_instance_server" {
root_volume
{
volume_type
=
"b_ssd"
size_in_gb
=
var
.
INSTANCE_VOLUME_
GB
size_in_gb
=
var
.
INSTANCE_VOLUME_
DISK
}
depends_on
=
[
...
...
This diff is collapsed.
Click to expand it.
terraform/variables-gitlab.tf
+
1
−
1
View file @
3bb6f203
...
...
@@ -46,7 +46,7 @@ variable "INSTANCE_TYPE" {
description
=
"Type of instance to create"
}
variable
"INSTANCE_VOLUME_
GB
"
{
variable
"INSTANCE_VOLUME_
DISK
"
{
type
=
number
description
=
"Number of b_ssd GB storage to attach to the instance"
}
...
...
This diff is collapsed.
Click to expand it.
vars-deployment.json
+
13
−
1
View file @
3bb6f203
...
...
@@ -3,6 +3,7 @@
{
"name"
:
"ENVIRONMENT"
,
"input_name"
:
"Nom unique de l'environnement et du sous-domaine"
,
"input_type"
:
"string"
,
"description"
:
"Nom de l'environnement et du sous-domaine, identifiant unique au projet."
,
"masked"
:
false
,
"validation_regex_explanation"
:
"Une chaîne de caractère de 3 à 10 lettres, sans majuscules."
,
...
...
@@ -11,14 +12,25 @@
{
"name"
:
"TF_VAR_INSTANCE_COUNT"
,
"input_name"
:
"Nombre d'instances"
,
"input_type"
:
"number"
,
"description"
:
"Nombre d'instance a créer."
,
"masked"
:
false
,
"validation_regex_explanation"
:
"Doit contenir une valeur entre 1 et 99."
,
"validation_regex"
:
"^
\\
d{1,2}$"
},
{
"name"
:
"TF_VAR_INSTANCE_VOLUME_DISK"
,
"input_name"
:
"Taille du volume"
,
"input_type"
:
"number"
,
"description"
:
"Taille du disk attaché à l'instance."
,
"masked"
:
false
,
"validation_regex_explanation"
:
"Doit contenir une valeur entre 10 et 999."
,
"validation_regex"
:
"^
\\
d{2,3}$"
},
{
"name"
:
"TF_VAR_INSTANCE_TYPE"
,
"input_name"
:
"Instance type"
,
"input_name"
:
"Type d'instance"
,
"input_type"
:
"string-selection"
,
"description"
:
"Type d'instance à créer."
,
"masked"
:
false
,
"values"
:
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment