sockshop/terraform/terraform.tf

58 lines
948 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
terraform {
backend "s3" {
bucket = "terraform-xops-demos"
region = "us-west-2"
dynamodb_table = "terraform-xops-lock-state"
encrypt = true
}
required_providers {
gitea = {
source = "Lerentis/gitea"
version = "0.16.0"
}
restful = {
source = "magodo/restful"
}
}
required_version = "~> 1.3"
}
provider "gitea" {
# Configuration options
base_url = var.GITEA_URL # optionally use GITEA_BASE_URL env var
token = var.GITEA_TOKEN # optionally use GITEA_TOKEN env var
#username = var.GITEA_USER
# password = var.GITEA_PASSWORD
}
provider "restful" {
base_url = "https://keptn.nttdata-xlabs.com"
client = {
tls_insecure_skip_verify=true
}
security = {
apikey = [
{
in = "header"
name = "x-token"
value = var.KEPTN_API_TOKEN
},
]
}
}