Skip to content

Commit

Permalink
WebApp - Actualizo configuración de Terraform para que use bucket exi…
Browse files Browse the repository at this point in the history
…stente
  • Loading branch information
Dario Di Gulio committed Dec 26, 2023
1 parent e11d6fc commit e9c8484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/webApp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cd webapp
yarn build
- name: Deploy Infrastructure With Terraform
- name: Deploy Infrastructure
run: |
terraform init
terraform apply -auto-approve
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e9c8484

Please sign in to comment.