Skip to content

Commit

Permalink
tf test 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Uj5Ghare authored Nov 16, 2024
1 parent d36f872 commit ad28665
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/tf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ jobs:
id: plan
run: terraform plan -var-file=variables.tfvars
continue-on-error: true
env:
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Terraform Apply
if: "contains(github.event.head_commit.message, 'Apply')"
Expand Down
2 changes: 0 additions & 2 deletions tf/files/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ terraform {

provider "aws" {
region = var.region
access_key = var.access_key
secret_key = var.secret_key
}

2 changes: 0 additions & 2 deletions tf/files/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
variable "region" {}
variable "access_key" {}
variable "secret_key" {}
variable "ami" {}
variable "instance_type" {}
variable "instance_name" {}
Expand Down
2 changes: 0 additions & 2 deletions tf/files/variables.tfvars
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
region = "ap-south-2"
access_key = $AWS_ACCESS_KEY_ID
secret_key = $AWS_SECRET_ACCESS_KEY
ami = "ami-00322bc378c450310"
instance_type = "t3.micro"
instance_name = "custom-chatgpt"
Expand Down

0 comments on commit ad28665

Please sign in to comment.