✨ feat(deploy): iac/ Vault provisioning + workflow (uses app_roles module from tools) (#99)
Co-authored-by: Gabriel Radureau <arcodange@gmail.com> Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
This commit was merged in pull request #99.
This commit is contained in:
6
iac/backend.tf
Normal file
6
iac/backend.tf
Normal file
@@ -0,0 +1,6 @@
|
||||
terraform {
|
||||
backend "gcs" {
|
||||
bucket = "arcodange-tf"
|
||||
prefix = "dance-lessons-coach/main"
|
||||
}
|
||||
}
|
||||
10
iac/main.tf
Normal file
10
iac/main.tf
Normal file
@@ -0,0 +1,10 @@
|
||||
locals {
|
||||
app = {
|
||||
name = "dance-lessons-coach"
|
||||
}
|
||||
}
|
||||
|
||||
module "app_roles" {
|
||||
source = "git::ssh://git@192.168.1.202:2222/arcodange-org/tools.git//hashicorp-vault/iac/modules/app_roles?depth=1&ref=main"
|
||||
name = local.app.name
|
||||
}
|
||||
17
iac/providers.tf
Normal file
17
iac/providers.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
vault = {
|
||||
source = "vault"
|
||||
version = "4.4.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "vault" {
|
||||
address = "https://vault.arcodange.lab"
|
||||
auth_login_jwt {
|
||||
# TERRAFORM_VAULT_AUTH_JWT environment variable, set by the gitea OIDC step
|
||||
mount = "gitea_jwt"
|
||||
role = "gitea_cicd_dance-lessons-coach"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user