move api key to tfvars and change it as it was public [ci skip]
This commit is contained in:
parent
a9b161b329
commit
300f7c1ea8
5 changed files with 6 additions and 1 deletions
2
main.tf
2
main.tf
|
|
@ -33,6 +33,7 @@ variable "drone_rpc_secret" {}
|
|||
variable "oauth_client_id" {}
|
||||
variable "oauth_client_secret" {}
|
||||
variable "url_shortener_geolite_license_key" {}
|
||||
variable "url_shortener_api_key" {}
|
||||
variable "webhook_handler_fb_verify_token" {}
|
||||
variable "webhook_handler_fb_page_token" {}
|
||||
variable "webhook_handler_fb_app_secret" {}
|
||||
|
|
@ -231,4 +232,5 @@ module "kubernetes_cluster" {
|
|||
idrac_password = var.monitoring_idrac_password
|
||||
|
||||
url_shortener_geolite_license_key = var.url_shortener_geolite_license_key
|
||||
url_shortener_api_key = var.url_shortener_api_key
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ variable "drone_rpc_secret" {}
|
|||
variable "oauth_client_id" {}
|
||||
variable "oauth_client_secret" {}
|
||||
variable "url_shortener_geolite_license_key" {}
|
||||
variable "url_shortener_api_key" {}
|
||||
variable "webhook_handler_fb_verify_token" {}
|
||||
variable "webhook_handler_fb_page_token" {}
|
||||
variable "webhook_handler_fb_app_secret" {}
|
||||
|
|
@ -186,6 +187,7 @@ module "url" {
|
|||
source = "./url-shortener"
|
||||
tls_secret_name = var.tls_secret_name
|
||||
geolite_license_key = var.url_shortener_geolite_license_key
|
||||
api_key = var.url_shortener_api_key
|
||||
}
|
||||
|
||||
module "webhook_handler" {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
variable "tls_secret_name" {}
|
||||
variable "geolite_license_key" {}
|
||||
variable "api_key" {}
|
||||
variable "domain" {
|
||||
default = "url.viktorbarzin.me"
|
||||
}
|
||||
|
|
@ -138,7 +139,7 @@ resource "kubernetes_config_map" "shlink-web" {
|
|||
"servers.json" = jsonencode([{
|
||||
name = "Main"
|
||||
url = "https://url.viktorbarzin.me"
|
||||
apiKey = "9f0c32d6-605d-480b-ac80-764e122498b5"
|
||||
apiKey = var.api_key
|
||||
}])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
BIN
terraform.tfvars
BIN
terraform.tfvars
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue