Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ name: Terraform Cleanup
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight, adjust as needed
# - cron: '0 0 * * *' # Runs every day at midnight, adjust as needed

jobs:
terraform-cleanup:
name: 'Post Apply Cleanup'
runs-on: ubuntu-latest

env:
AWS_REGION: 'us-east-1'
TF_VERSION: '1.4.0'
AWS_REGION: 'us-west-2'
TF_VERSION: '1.14.7'

steps:
- name: 'Checkout GitHub repository'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest

env:
AWS_REGION: 'us-east-1'
TF_VERSION: '1.4.0'
TFLINT_VERSION: '0.46.1' # Updated to a more recent version
TFSEC_VERSION: '1.28.1' # Updated to a more recent version
AWS_REGION: 'us-west-2'
TF_VERSION: '1.14.7'
TFLINT_VERSION: '0.61.0' # Updated to a more recent version
TFSEC_VERSION: '1.28.14' # Updated to a more recent version

steps:
- name: 'Checkout GitHub repository'
Expand Down
4 changes: 2 additions & 2 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
backend "s3" {
bucket = "my-terraform-state-bobby"
region = "us-east-1"
bucket = "github-actions-balaji2353"
region = "us-west-2"
key = "s3-github-actions/terraform.tfstate"
encrypt = true
}
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
provider "aws" {
region = "us-east-1"
region = "us-west-2"
}

#tfsec:ignore:aws-s3-enable-bucket-logging
resource "aws_s3_bucket" "example" {
bucket = "my-tf-example-bucket-999"
bucket = "balaji-2353-devops1"
}

resource "aws_s3_bucket_ownership_controls" "example" {
Expand Down