diff --git a/main.tf b/main.tf index 337fdd9..16f5292 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,7 @@ terraform { backend "s3" { bucket = "konnect-terraform" - key = "konnect/prod" + key = "konnect/gha" skip_credentials_validation = true skip_region_validation = true skip_requesting_account_id = true diff --git a/modules/kong-configs/demo/consumers.tf b/modules/kong-configs/demo/consumers.tf index b0fcf83..6352fee 100644 --- a/modules/kong-configs/demo/consumers.tf +++ b/modules/kong-configs/demo/consumers.tf @@ -1,73 +1,3 @@ -# resource "konnect_gateway_consumer" "alice" { -# username = "alice" -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_basic_auth" "alice_basicauth" { -# username = var.alice_credentials.username -# password = var.alice_credentials.password - -# consumer_id = konnect_gateway_consumer.alice.id -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_key_auth" "alice_keyauth" { -# key = var.alice_credentials.api_key -# consumer_id = konnect_gateway_consumer.alice.id -# control_plane_id = var.control_plane.id -# } - -# variable "alice_credentials" { -# type = object({ -# api_key = string -# username = string -# password = string -# }) - -# default = { -# api_key = "alice" -# username = "alice" -# password = "alice-pw" -# } - -# sensitive = true -# } - -# resource "konnect_gateway_consumer" "alex" { -# username = "alex" -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_basic_auth" "alex_basicauth" { -# username = var.alex_credentials.username -# password = var.alex_credentials.password - -# consumer_id = konnect_gateway_consumer.alex.id -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_key_auth" "alex_keyauth" { -# key = var.alex_credentials.api_key -# consumer_id = konnect_gateway_consumer.alex.id -# control_plane_id = var.control_plane.id -# } - -# variable "alex_credentials" { -# type = object({ -# api_key = string -# username = string -# password = string -# }) - -# default = { -# api_key = "alex" -# username = "alex" -# password = "alex-pw" -# } - -# sensitive = true -# } - locals { user_apikeys = jsondecode(file("${path.module}/apikeys.json")) } diff --git a/modules/kong-configs/dev_au_cloud/consumers.tf b/modules/kong-configs/dev_au_cloud/consumers.tf index b0fcf83..6352fee 100644 --- a/modules/kong-configs/dev_au_cloud/consumers.tf +++ b/modules/kong-configs/dev_au_cloud/consumers.tf @@ -1,73 +1,3 @@ -# resource "konnect_gateway_consumer" "alice" { -# username = "alice" -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_basic_auth" "alice_basicauth" { -# username = var.alice_credentials.username -# password = var.alice_credentials.password - -# consumer_id = konnect_gateway_consumer.alice.id -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_key_auth" "alice_keyauth" { -# key = var.alice_credentials.api_key -# consumer_id = konnect_gateway_consumer.alice.id -# control_plane_id = var.control_plane.id -# } - -# variable "alice_credentials" { -# type = object({ -# api_key = string -# username = string -# password = string -# }) - -# default = { -# api_key = "alice" -# username = "alice" -# password = "alice-pw" -# } - -# sensitive = true -# } - -# resource "konnect_gateway_consumer" "alex" { -# username = "alex" -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_basic_auth" "alex_basicauth" { -# username = var.alex_credentials.username -# password = var.alex_credentials.password - -# consumer_id = konnect_gateway_consumer.alex.id -# control_plane_id = var.control_plane.id -# } - -# resource "konnect_gateway_key_auth" "alex_keyauth" { -# key = var.alex_credentials.api_key -# consumer_id = konnect_gateway_consumer.alex.id -# control_plane_id = var.control_plane.id -# } - -# variable "alex_credentials" { -# type = object({ -# api_key = string -# username = string -# password = string -# }) - -# default = { -# api_key = "alex" -# username = "alex" -# password = "alex-pw" -# } - -# sensitive = true -# } - locals { user_apikeys = jsondecode(file("${path.module}/apikeys.json")) }