Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieg0Code committed Aug 11, 2024
1 parent 3b1cc1c commit f58d245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: terraform apply -auto-approve -var="aws_region=${{ secrets.AWS_REGION }}" -var="aws_account_id=${{ secrets.AWS_ACCOUNT_ID }}"
run: terraform apply -auto-approve

- name: Get API Gateway URL
working-directory: ./terraform
Expand Down
2 changes: 1 addition & 1 deletion terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "aws_iam_policy" "lambda_policy" {
"dynamodb:Query"
]
Effect = "Allow"
Resource = "arn:aws:dynamodb:${var.aws_region}:${var.aws_account_id}:table/${aws_dynamodb_table.products_table.name}"
Resource = "arn:aws:dynamodb:sa-east-1:992382698192:table/${aws_dynamodb_table.products_table.name}"
}
]
})
Expand Down

0 comments on commit f58d245

Please sign in to comment.