Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
83442ae
Change AWS region from ap-northeast-1 to us-east-1
laxmanraju4144 Apr 10, 2026
443ad91
Update backend.tf
laxmanraju4144 Apr 10, 2026
f9fa543
Update providers.tf
laxmanraju4144 Apr 10, 2026
08faad0
Change default availability zones to US East
laxmanraju4144 Apr 10, 2026
4aa19f0
Update backend.tf
laxmanraju4144 Apr 10, 2026
c9f1dc5
Change S3 region from ap-northeast-1 to us-east-1
laxmanraju4144 Apr 10, 2026
7ff321e
Change region output from ap-northeast-1 to us-east-1
laxmanraju4144 Apr 10, 2026
96bf789
Update providers.tf
laxmanraju4144 Apr 10, 2026
93c83fd
Change default SSH key name for EC2 access
laxmanraju4144 Apr 10, 2026
67c7015
changed the regiou across the cluster
laxmanraju4144 Apr 12, 2026
34e9c59
second push
laxmanraju4144 Apr 12, 2026
3af1a1e
3 push
laxmanraju4144 Apr 12, 2026
be541ad
updating the key pair
laxmanraju4144 Apr 12, 2026
28f94a9
chnaged
laxmanraju4144 Apr 21, 2026
4212e9a
latest chnages
laxmanraju4144 Apr 22, 2026
faedd2f
latest changes
laxmanraju4144 Apr 24, 2026
1fbcbac
latets chnages
laxmanraju4144 Apr 24, 2026
f7f3e26
Add .gitignore for Terraform files
laxmanraju4144 May 5, 2026
9709c2f
latest changes
laxmanraju4144 May 5, 2026
76a314b
latest chnages
laxmanraju4144 May 5, 2026
6796b28
latest changes
laxmanraju4144 May 5, 2026
1d22e47
latest chnages
laxmanraju4144 May 5, 2026
7b51465
latest chnages
laxmanraju4144 May 5, 2026
e6a7657
latest chnages
laxmanraju4144 May 5, 2026
b0016e7
latest chnages
laxmanraju4144 May 5, 2026
becf5e1
latest chnages
laxmanraju4144 May 5, 2026
f2a1e5f
latets chnages
laxmanraju4144 May 5, 2026
07721d8
latest chnages
laxmanraju4144 May 5, 2026
22513dc
latest chnages
laxmanraju4144 May 5, 2026
724fc16
latest chnages
laxmanraju4144 May 5, 2026
df2aed4
latest changes
laxmanraju4144 May 5, 2026
1f0a549
latest chnage
laxmanraju4144 May 5, 2026
7a82563
latets chnages
laxmanraju4144 May 5, 2026
a6274a3
latets chnages
laxmanraju4144 May 5, 2026
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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Local .terraform directories
.terraform/

# Terraform state files
*.tfstate
*.tfstate.*

# Crash logs
crash.log

# Override files
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Terraform lock file (optional)
# Commit if you want reproducible provider versions, otherwise ignore
.terraform.lock.hcl

# Sensitive variable files
*.tfvars
*.tfvars.json
25 changes: 0 additions & 25 deletions 0-bootstrap/.terraform.lock.hcl

This file was deleted.

8 changes: 5 additions & 3 deletions 0-bootstrap/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
resource "aws_s3_bucket" "tf_state" {
bucket = "quantamvector-infra-statefile-backup"
bucket = "laxmanraju-statefile-logs"
}

resource "aws_s3_bucket_versioning" "tf_state" {
bucket = aws_s3_bucket.tf_state.id

versioning_configuration {
status = "Enabled"
}
Expand All @@ -30,7 +30,7 @@ resource "aws_s3_bucket_public_access_block" "tf_state" {
}

resource "aws_dynamodb_table" "tf_lock" {
name = "quantamvector-terraform-locks"
name = "laxmanraju-statefile-DB-lock"
billing_mode = "PAY_PER_REQUEST"
hash_key = "LockID"

Expand All @@ -39,3 +39,5 @@ resource "aws_dynamodb_table" "tf_lock" {
type = "S"
}
}

//updated
2 changes: 1 addition & 1 deletion 0-bootstrap/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ terraform {
}

provider "aws" {
region = "ap-northeast-1"
region = "us-east-1"
}

21 changes: 16 additions & 5 deletions 1-network/backend.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# terraform {
# backend "s3" {
# bucket = "laxmanraju-state-lock"
# key = "laxmanraju/1-network/terraform.tfstate"
# region = "us-east-1"
# dynamodb_table = "laxmanraju-state-DB-1-lock"
# encrypt = true
# }
# }

terraform {
backend "s3" {
bucket = "quantamvector-infra-statefile-backup"
key = "quantamvector/1-network/terraform.tfstate"
region = "ap-northeast-1"
dynamodb_table = "quantamvector-terraform-locks"
encrypt = true
bucket = "laxmanraju-statefile-logs" # your S3 bucket
key = "env/terraform.tfstate"
dynamodbdynamodb_table = "laxmanraju-statefile-DB-lock" # path inside the bucket
region = "us-east-1"
encrypt = true
use_lockfile = true # replaces dynamodb_table
}
}
4 changes: 2 additions & 2 deletions 1-network/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ terraform {
}

provider "aws" {
region = "ap-northeast-1"
}
region = "us-east-1"
}
4 changes: 2 additions & 2 deletions 1-network/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "project" {
type = string
default = "quantamvector"
default = "microservices-v2"
}

variable "vpc_cidr" {
Expand All @@ -10,5 +10,5 @@ variable "vpc_cidr" {

variable "azs" {
type = list(string)
default = ["ap-northeast-1a", "ap-northeast-1c", "ap-northeast-1d"]
default = ["us-east-1a", "us-east-1b"]
}
105 changes: 0 additions & 105 deletions 2-eks/.terraform.lock.hcl

This file was deleted.

11 changes: 6 additions & 5 deletions 2-eks/backend.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
terraform {
backend "s3" {
bucket = "quantamvector-infra-statefile-backup"
key = "quantamvector/2-eks/terraform.tfstate"
region = "ap-northeast-1"
dynamodb_table = "quantamvector-terraform-locks"
bucket = "laxmanraju-statefile-logs"
key = "laxmanraju/2-eks/terraform.tfstate"
region = "us-east-1"
dynamodb_table = "laxmanraju-statefile-DB-lock"
use_lockfile = true # replaces dynamodb_table
encrypt = true
}
}
}
6 changes: 3 additions & 3 deletions 2-eks/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ data "terraform_remote_state" "network" {
backend = "s3"

config = {
bucket = "quantamvector-infra-statefile-backup"
key = "quantamvector/1-network/terraform.tfstate"
region = "ap-northeast-1"
bucket = "laxmanraju-statefile-logs"
key = "env/terraform.tfstate"
region = "us-east-1"
}
}
2 changes: 1 addition & 1 deletion 2-eks/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ output "cluster_certificate_authority_data" {
}

output "region" {
value = "ap-northeast-1"
value = "us-east-1"
}
2 changes: 1 addition & 1 deletion 2-eks/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ terraform {
}

provider "aws" {
region = "ap-northeast-1"
region = "us-east-1"
}
4 changes: 2 additions & 2 deletions 2-eks/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "project" {
type = string
default = "quantamvector"
default = "microservices-v2"
}

variable "kubernetes_version" {
Expand All @@ -11,5 +11,5 @@ variable "kubernetes_version" {
variable "ssh_key_name" {
type = string
description = "Name of the EC2 key pair for SSH access to worker nodes"
default = "Tokyo-key"
default = "Common"
}
Loading