christianlempa-boilerplates/terraform/templates/cloud-deployment-example/main.tf
Christoph Schug 8a17193dd0 fix: add final newline character to text files
This makes text files compliant to POSIX which requires every line of a
text file to end with a newline character [1][2].

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_403
[2] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
2024-02-22 19:06:54 +01:00

41 lines
805 B
HCL

# General Terraform Settings
# ---
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
civo = {
source = "civo/civo"
}
}
}
# Declare Variables
# ---
# TODO: Create a yourfile.auto.tfvars file in the project directory and add your variables in it.
# Example:
# cloudflare_email = "youremail@yourmail.com"
# cloudflare_api_key = "your-api-key"
# civo_token = "your-token"
variable "cloudflare_email" {}
variable "cloudflare_api_key" {}
variable "civo_token" {}
# Set Default Provider Settings
# ---
provider "cloudflare" {
email = var.cloudflare_email
api_key = var.cloudflare_api_key
}
provider "civo" {
token = var.civo_token
# (optional) change the defaullt region
# region = "FRA1"
}