Skip to content

Commit

Permalink
Refactor to move variables to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Sep 24, 2024
1 parent d62a7eb commit 552e816
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
28 changes: 0 additions & 28 deletions web/deploy/terraform/modules/shared_resources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,6 @@ terraform {
}
}

# tflint-ignore: terraform_unused_declarations
variable "aws_region" {
description = "AWS region"
default = "us-east-1"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "s3_bucket" {
description = "S3 bucket for Terraform state"
default = "osm-storage"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "dynamodb_table" {
description = "DynamoDB table for Terraform state locking"
default = "terraform-locks"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "ssh_port" {
description = "Non-standard port for SSH"
default = 22
type = number
}

# VPC
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
Expand Down
27 changes: 27 additions & 0 deletions web/deploy/terraform/modules/shared_resources/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# tflint-ignore: terraform_unused_declarations
variable "aws_region" {
description = "AWS region"
default = "us-east-1"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "s3_bucket" {
description = "S3 bucket for Terraform state"
default = "osm-storage"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "dynamodb_table" {
description = "DynamoDB table for Terraform state locking"
default = "terraform-locks"
type = string
}

# tflint-ignore: terraform_unused_declarations
variable "ssh_port" {
description = "Non-standard port for SSH"
default = 22
type = number
}

0 comments on commit 552e816

Please sign in to comment.