From e9c8484357efc42b4f4d4732e676985f118517ea Mon Sep 17 00:00:00 2001 From: Dario Di Gulio Date: Tue, 26 Dec 2023 15:58:16 -0300 Subject: [PATCH] =?UTF-8?q?WebApp=20-=20Actualizo=20configuraci=C3=B3n=20d?= =?UTF-8?q?e=20Terraform=20para=20que=20use=20bucket=20existente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/webApp.yml | 2 +- main.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/webApp.yml b/.github/workflows/webApp.yml index 6eaef3c..4a3f822 100644 --- a/.github/workflows/webApp.yml +++ b/.github/workflows/webApp.yml @@ -25,7 +25,7 @@ jobs: cd webapp yarn build - - name: Deploy Infrastructure With Terraform + - name: Deploy Infrastructure run: | terraform init terraform apply -auto-approve diff --git a/main.tf b/main.tf index 3015955..ec0b522 100644 --- a/main.tf +++ b/main.tf @@ -2,10 +2,10 @@ provider "aws" { region = "sa-east-1" } -data "aws_s3_bucket" "webapp_bucket" { +data "aws_s3_bucket" "existing_bucket" { bucket = "estelarte-web" } resource "aws_s3_bucket" "webapp_bucket" { - bucket = data.aws_s3_bucket.webapp_bucket.bucket + bucket = data.aws_s3_bucket.existing_bucket.bucket }