add common tf resources
This commit is contained in:
parent
145091b954
commit
b576d2a3e7
7 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
variable "bucket" {}
|
||||
variable "key" {}
|
||||
variable "kms_key_id" {}
|
||||
variable "region" {}
|
||||
variable "account_name" {}
|
|
@ -0,0 +1,5 @@
|
|||
terraform {
|
||||
backend "s3" {
|
||||
encrypt = "true"
|
||||
}
|
||||
}
|
3
src/main/resources/terraform/aws_provider.tf
Normal file
3
src/main/resources/terraform/aws_provider.tf
Normal file
|
@ -0,0 +1,3 @@
|
|||
provider "aws" {
|
||||
region = var.region
|
||||
}
|
2
src/main/resources/terraform/hetzner_mixin_vars.tf
Normal file
2
src/main/resources/terraform/hetzner_mixin_vars.tf
Normal file
|
@ -0,0 +1,2 @@
|
|||
variable "hetzner_api_key" {
|
||||
}
|
4
src/main/resources/terraform/hetzner_provider.tf
Normal file
4
src/main/resources/terraform/hetzner_provider.tf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Configure the Hetzner Cloud Provider
|
||||
provider "hcloud" {
|
||||
token = var.hetzner_api_key
|
||||
}
|
2
src/main/resources/terraform/terraform_build_vars.tf
Normal file
2
src/main/resources/terraform/terraform_build_vars.tf
Normal file
|
@ -0,0 +1,2 @@
|
|||
variable "stage" {}
|
||||
variable "module" {}
|
4
src/main/resources/terraform/versions.tf
Normal file
4
src/main/resources/terraform/versions.tf
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
terraform {
|
||||
required_version = ">= 0.12"
|
||||
}
|
Loading…
Reference in a new issue