Skip to content

Commit 482b378

Browse files
committed
Fix to deal with multiple env
1 parent 417aa32 commit 482b378

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

terraform/prod/rds.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_db_instance" "db" {
2-
identifier = "rails-blog"
2+
identifier = "${local.env}-rails-blog"
33
allocated_storage = 20
44
max_allocated_storage = 1000
55
storage_type = "gp2"

terraform/prod/variables.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ locals {
55

66
variable "vpc_cidr" {
77
type = string
8-
default = "10.10.0.0/16"
8+
default = "10.20.0.0/16"
99
}
1010

1111
variable "github_owner" {
@@ -18,6 +18,11 @@ variable "github_repo" {
1818
default = "rails-blog-example"
1919
}
2020

21+
variable "target_branch" {
22+
type = string
23+
default = "master"
24+
}
25+
2126
variable "remote_backend" {
2227
type = string
2328
description = "S3 bucket that stores terraform.tfstate"

0 commit comments

Comments
 (0)