feat: add AWS credentials and region config

pull/1/head v1.1.0
RaviAnand Mohabir 2 years ago
parent 1163e5a9b6
commit 2229d719e7

@ -175,6 +175,10 @@ resource "kubernetes_config_map" "drone_server" {
DRONE_S3_ENDPOINT = var.drone_s3_endpoint DRONE_S3_ENDPOINT = var.drone_s3_endpoint
DRONE_S3_PATH_STYLE = var.drone_s3_path_style DRONE_S3_PATH_STYLE = var.drone_s3_path_style
DRONE_S3_PREFIX = var.drone_s3_prefix DRONE_S3_PREFIX = var.drone_s3_prefix
AWS_ACCESS_KEY_ID = var.drone_s3_access_key
AWS_SECRET_ACCESS_KEY = var.drone_s3_secret_key
AWS_DEFAULT_REGION = var.drone_s3_default_region
AWS_REGION = var.drone_s3_region
DRONE_STARLARK_ENABLED = var.drone_starlark_enabled DRONE_STARLARK_ENABLED = var.drone_starlark_enabled
DRONE_WEBHOOK_ENDPOINT = var.drone_webhook_endpoint DRONE_WEBHOOK_ENDPOINT = var.drone_webhook_endpoint
DRONE_WEBHOOK_EVENTS = var.drone_webhook_events DRONE_WEBHOOK_EVENTS = var.drone_webhook_events

@ -145,3 +145,27 @@ variable "drone_webhook_skip_verify" {
type = bool type = bool
default = false default = false
} }
variable "drone_s3_access_key" {
description = "Drone S3"
type = string
default = ""
}
variable "drone_s3_secret_key" {
description = "Drone S3"
type = string
default = ""
}
variable "drone_s3_default_region" {
description = "Drone S3"
type = string
default = "us-east-1"
}
variable "drone_s3_region" {
description = "Drone S3"
type = string
default = "us-east-1"
}

Loading…
Cancel
Save