fix(cdash): Terraform 16/43416/2
authorPeter Mikus <[email protected]>
Tue, 8 Jul 2025 10:58:20 +0000 (12:58 +0200)
committerPeter Mikus <[email protected]>
Tue, 8 Jul 2025 10:59:44 +0000 (10:59 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: I01942d751a71d08daf51e258f276d6bd2c8eaea9

fdio.infra.terraform/terraform-aws-elastic-beanstalk-application-version/main.tf

index ace3aeb..2ccce72 100644 (file)
@@ -7,10 +7,6 @@ locals {
 }
 
 # Create elastic beanstalk Application Version
-# resource "aws_s3_bucket" "bucket" {
-#   bucket = var.application_bucket
-#   tags   = local.tags
-# }
 resource "aws_s3_object" "object" {
   bucket = var.application_bucket
   key    = local.key
@@ -19,6 +15,9 @@ resource "aws_s3_object" "object" {
 }
 
 resource "aws_elastic_beanstalk_application_version" "application_version" {
+  depends_on = [
+    aws_s3_object.object
+  ]
   application = var.application_name
   description = var.application_description
   bucket      = var.application_bucket