diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index 61b61c35..b4b44311 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -26,9 +26,9 @@ jobs: echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> ~/.aws/credentials echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> ~/.aws/credentials - - name: Generate env.auto.tfvars + - name: Generate environment-var.tf run: | - echo "${{ secrets.TF_ENV_FILE }}" > ./terraform/env.tf + echo "${{ secrets.TF_ENV_FILE }}" > ./terraform/environment-var.tf - name: Set up Terraform uses: hashicorp/setup-terraform@v1 diff --git a/.gitignore b/.gitignore index 47c25017..697e6326 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,5 @@ data/ */.terraform/ *.hcl *.tfstate -env.tf *.tfvars +environment-var.tf diff --git a/terraform/variables.tf b/terraform/variables.tf deleted file mode 100644 index c1caea72..00000000 --- a/terraform/variables.tf +++ /dev/null @@ -1,44 +0,0 @@ -variable "vpc_cidr_block" { - description = "The CIDR block for the VPC" - type = string -} - -variable "public_subnet_cidr" { - description = "The CIDR block for the public subnet" - type = string -} - -variable "private_subnet_cidr" { - description = "List of CIDR blocks for the private subnets" - type = list(string) -} - -variable "ami" { - description = "The AMI ID to use for the instances" - type = string -} - -variable "db_password" { - description = "The password for the RDS database instance" - type = string -} - -variable "tags" { - description = "A map of tags to add to all resources" - type = map(string) -} - -variable "rabbitmq" { - description = "RabbitMQ credentials" - type = map(string) -} - -variable "elb_protocol" { - description = "List of protocols for the ELB" - type = list(string) -} - -variable "elb_port" { - description = "List of ports the ELB listens on" - type = list(number) -}