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 }