From cfa5ea5046dd1962806dd0142467b6189bfce6a0 Mon Sep 17 00:00:00 2001 From: Nathan Rodet <nrodet@grandlyon.com> Date: Wed, 21 Dec 2022 09:21:21 +0100 Subject: [PATCH] Added sample file to terraform local exec --- .gitignore | 2 -- terraform/variables-local.tf | 19 +++++++++++++++++++ terraform/variables-local.tfvars | 14 ++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 terraform/variables-local.tf create mode 100644 terraform/variables-local.tfvars diff --git a/.gitignore b/.gitignore index cb988bc..d49a7b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ terraform/.terraform.lock.hcl terraform/.terraform.tfstate.lock.info terraform/terraform.tfstate* -variables-local.tfvars -variables-local.tf terraform/.terraform/* terraform/tfplan .idea diff --git a/terraform/variables-local.tf b/terraform/variables-local.tf new file mode 100644 index 0000000..f322a9e --- /dev/null +++ b/terraform/variables-local.tf @@ -0,0 +1,19 @@ +## Terraform local execution + +variable "FORGE_PROJECT_ID" { + type = string + description = "Forge Project ID" + sensitive = true +} + +variable "FORGE_USERNAME" { + type = string + description = "Forge Username" + sensitive = true +} + +variable "FORGE_ACCESS_TOKEN" { + type = string + description = "Forge Access Token" + sensitive = true +} diff --git a/terraform/variables-local.tfvars b/terraform/variables-local.tfvars new file mode 100644 index 0000000..7a522bc --- /dev/null +++ b/terraform/variables-local.tfvars @@ -0,0 +1,14 @@ +### SCW variables + +SCW_PROJECT_ID = "" +SCW_ACCESS_KEY = "" +SCW_SECRET_KEY = "" +SCW_SSH_PUB_KEY = "" +SCW_SSH_PRIVATE_KEY = "" +INSTANCES_COUNT = "" +ENVIRONMENT = "" + +### FORGE variables +FORGE_PROJECT_ID = "" +FORGE_USERNAME="[\"\"]" +FORGE_ACCESS_TOKEN = "" \ No newline at end of file -- GitLab