commit
9a0b06edc1
3 changed files with 37 additions and 0 deletions
17
.woodpecker/terraform.yml
Normal file
17
.woodpecker/terraform.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
- event: cron
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: terraform
|
||||||
|
image: hashicorp/terraform:latest
|
||||||
|
environment:
|
||||||
|
SCW_SECRET_KEY:
|
||||||
|
from_secret: sce_secret_key
|
||||||
|
SCW_ACCESS_KEY:
|
||||||
|
from_secret: scw_access_key
|
||||||
|
commands:
|
||||||
|
- cd terraform/
|
||||||
|
- terraform init
|
||||||
|
- terraform plan
|
11
terraform/backend.tf
Normal file
11
terraform/backend.tf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
terraform {
|
||||||
|
backend "s3" {
|
||||||
|
bucket = "kekscloud-infra-terraform"
|
||||||
|
key = "terraform.tfstate"
|
||||||
|
region = "fr-par"
|
||||||
|
endpoints = { s3 = "https://s3.fr-par.scw.cloud" }
|
||||||
|
skip_credentials_validation = true
|
||||||
|
skip_region_validation = true
|
||||||
|
skip_requesting_account_id = true
|
||||||
|
}
|
||||||
|
}
|
9
terraform/provider.tf
Normal file
9
terraform/provider.tf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
terraform {
|
||||||
|
required_providers {
|
||||||
|
hcloud = {
|
||||||
|
source = "hetznercloud/hcloud"
|
||||||
|
version = "~> 1.45"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue