From c29d1e606f9792127882f15cbb023fa82df53e80 Mon Sep 17 00:00:00 2001 From: Ruan Bekker Date: Fri, 3 Dec 2021 07:33:41 +0200 Subject: [PATCH] Create init.sh --- drone-ci/localstack-service-terraform/init.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 drone-ci/localstack-service-terraform/init.sh diff --git a/drone-ci/localstack-service-terraform/init.sh b/drone-ci/localstack-service-terraform/init.sh new file mode 100644 index 0000000..58fb355 --- /dev/null +++ b/drone-ci/localstack-service-terraform/init.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh +set -x +terraform init \ + -backend-config access_key=$AWS_ACCESS_KEY_ID \ + -backend-config secret_key=$AWS_SECRET_ACCESS_KEY \ + -backend-config region=$AWS_DEFAULT_REGION \ + -backend-config "bucket=terraform-remote-state" \ + -backend-config "key=$CI_REPO_NAME/$CI_COMMIT_BRANCH" \ + -backend-config "endpoint=https://minio.domain.com" \ + -backend-config "force_path_style=true" \ + -backend-config "skip_credentials_validation=true" \ + -backend-config "skip_metadata_api_check=true" \ + -backend-config "skip_region_validation=true"