Merge pull request #898 from Hestia-Homes/deploy-fastapi-with-terraform

Deploy fastapi with terraform: hardcode tfstate bucket names when accessing them
This commit is contained in:
Daniel Roth 2026-03-17 12:03:48 +00:00 committed by GitHub
commit 5978e16654
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,7 @@ data "terraform_remote_state" "shared" {
data "terraform_remote_state" "fast_api" {
backend = "s3"
config = {
bucket = data.terraform_remote_state.shared.ara_fast_api_state_bucket
bucket = "ara-fast-api-terraform-state"
key = "env:/${var.stage}/terraform.tfstate"
region = "eu-west-2"
}
@ -28,7 +28,7 @@ data "terraform_remote_state" "fast_api" {
data "terraform_remote_state" "cdn_certificate" {
backend = "s3"
config = {
bucket = data.terraform_remote_state.shared.cdn_certificate_state_bucket
bucket = "cdn-certificate-terraform-state"
key = "env:/${var.stage}/terraform.tfstate"
region = "eu-west-2"
}