diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 1e5e957..9c7290a 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -3,7 +3,7 @@ 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: @@ -11,8 +11,8 @@ jobs: 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' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb7d2d5..999a636 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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' diff --git a/backend.tf b/backend.tf index 7183871..9b4d5c8 100644 --- a/backend.tf +++ b/backend.tf @@ -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 } diff --git a/main.tf b/main.tf index 6165cc4..52591f1 100644 --- a/main.tf +++ b/main.tf @@ -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" {