infrastructure/tf-stage-1/main.tf

39 lines
1004 B
Terraform
Raw Normal View History

2023-09-14 07:09:02 +02:00
terraform {
backend "s3" {
2024-01-05 02:52:05 +01:00
bucket = "terraform-0d6c29f308f4e7e6"
2023-09-14 07:09:02 +02:00
key = "terraform/keycloak.tfstate"
2024-01-05 02:52:05 +01:00
endpoint = "https://s3.us-west-002.backblazeb2.com"
# force_path_style = true
region = "us-west-002"
2023-09-14 07:09:02 +02:00
skip_credentials_validation = true
skip_region_validation = true
2024-01-05 02:52:05 +01:00
# skip_metadata_api_check = true
skip_requesting_account_id = true
2024-01-05 02:52:05 +01:00
skip_s3_checksum = true
2023-09-14 07:09:02 +02:00
}
required_providers {
keycloak = {
source = "mrparkers/keycloak"
version = "~> 4.3.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 4.0"
}
}
}
data "keycloak_realm" "realm" {
realm = var.realm
}
data "keycloak_role" "default_role" {
realm_id = data.keycloak_realm.realm.id
name = "default-roles-tobiasmanske.de"
}
2023-12-27 16:12:10 +01:00
data "keycloak_group" "proxypass" {
realm_id = data.keycloak_realm.realm.id
name = "proxypass"
}