Skip to content

Commit

Permalink
Merge pull request #10 from liyangau/add-cloud-gateway-au
Browse files Browse the repository at this point in the history
add cloud gateway in au
  • Loading branch information
liyangau authored Jul 26, 2024
2 parents afb1417 + 14de4a0 commit 2691f04
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 141 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
70 changes: 0 additions & 70 deletions modules/kong-configs/demo/consumers.tf
Original file line number Diff line number Diff line change
@@ -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"))
}
Expand Down
70 changes: 0 additions & 70 deletions modules/kong-configs/dev_au_cloud/consumers.tf
Original file line number Diff line number Diff line change
@@ -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"))
}
Expand Down

0 comments on commit 2691f04

Please sign in to comment.