Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
- name: 'Configure AWS Credentials'
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: 'us-west-2'
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/GithubActionsRole
aws-region: 'us-east-1'
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_DEV }}:role/GithubActionsRole
role-session-name: github-action-terraform-deploy

- name: Setup Terraform
Expand Down Expand Up @@ -127,8 +127,8 @@ jobs:
- name: 'Configure AWS Credentials'
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: 'us-west-2'
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/GithubActionsRole
aws-region: 'us-east-1'
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID_DEV }}:role/GithubActionsRole
role-session-name: github-action-terraform-deploy

- name: Setup Terraform
Expand Down
4 changes: 2 additions & 2 deletions terraform/app/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
backend "s3" {
# app/battlesnake-lambda-dev/terraform.tfstate key
region = "us-west-2"
region = "us-east-1"
encrypt = true # Garante que o estado seja criptografado no S3
}

Expand All @@ -16,7 +16,7 @@ terraform {

# ----- configurando o provedor -----
provider "aws" {
region = "us-west-2"
region = "us-east-1"
}

# ------ configurando a funcao lambda ------
Expand Down
4 changes: 2 additions & 2 deletions terraform/bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
backend "s3" {
bucket = "battle-snake-bootstrap-state"
dynamodb_table = "battle-snake-bootstrap-state-table"
region = "us-west-2"
region = "us-east-1"
encrypt = true
}
required_providers {
Expand All @@ -15,7 +15,7 @@ terraform {
}

provider "aws" {
region = "us-west-2"
region = "us-east-1"
}

variable "project_name" {
Expand Down