Skip to content

Commit

Permalink
add s3_bucket_name as tofu var for burn_backedn
Browse files Browse the repository at this point in the history
  • Loading branch information
GondekNP committed Feb 28, 2024
1 parent e8d9f38 commit 5854059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .deployment/tofu/modules/burn_backend/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ variable "google_project_number" {
variable "s3_from_gcp_role_arn" {
description = "Role ARN to assume to access S3 from GCP"
type = string
}

variable "s3_bucket_name" {
description = "S3 bucket name"
type = string
}
2 changes: 2 additions & 0 deletions .devcontainer/scripts/export_tofu_dotenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ export s3_from_gcp_role_arn="$(tofu output s3_from_gcp_role_arn)"

# Remove quotes from the email to avoid issue with the impersonation below
export gcp_service_account_s3_email=$(tofu output gcp_service_account_s3_email | tr -d '"')
export s3_bucket_name=$(tofu output s3_bucket_name)

echo "# TOFU ENV VARS" >> /workspace/.devcontainer/.env
echo "ENV=LOCAL" >> /workspace/.devcontainer/.env
echo "DEPLOYMENT=DEV" >> /workspace/.devcontainer/.env
echo "S3_FROM_GCP_ROLE_ARN=$s3_from_gcp_role_arn" >> /workspace/.devcontainer/.env
echo "BUCKET_NAME=$s3_bucket_name" >> /workspace/.devcontainer/.env
echo "GCP_CLOUD_RUN_ENDPOINT=$gcp_cloud_run_endpoint" >> /workspace/.devcontainer/.env
echo "GCP_SERVICE_ACCOUNT_S3_EMAIL=$gcp_service_account_s3_email" >> /workspace/.devcontainer/.env

0 comments on commit 5854059

Please sign in to comment.