Skip to content

Commit

Permalink
feat: Adding mapbox evn variables to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Dec 22, 2023
1 parent 7991adb commit 18f3f93
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/base/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ locals {
STRAPI_ADMIN_PREVIEW_URL = "${module.staging.app_url}/impact-sphere"
STRAPI_ADMIN_PREVIEW_SECRET = random_password.preview_secret.result
STRAPI_MEDIA_LIBRARY_PROVIDER = "digitalocean"
STRAPI_ADMIN_MAPBOX_USERNAME = var.mapbox_username
STRAPI_ADMIN_MAPBOX_STYLE_ID = var.mapbox_style_id

# DigitalOcean Spaces to store media content
BUCKET_ACCESS_KEY = var.do_spaces_client_id
Expand Down
12 changes: 12 additions & 0 deletions infrastructure/base/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,15 @@ variable "mapbox_api_token" {
default = ""
description = "MAPBOX api token"
}

variable "mapbox_username" {
type = string
default = ""
description = "MAPBOX username"
}

variable "mapbox_style_id" {
type = string
default = ""
description = "MAPBOX style ID"
}

0 comments on commit 18f3f93

Please sign in to comment.