55# used for health checks and to distribute traffic across Sync Gateway.
66# ---------------------------------------------------------------------------------------------------------------------
77
8- provider "aws" {
9- region = " ${ var . aws_region } "
10- }
11-
128terraform {
139 required_version = " >= 0.10.3"
1410}
@@ -21,7 +17,7 @@ module "couchbase" {
2117 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
2218 # to a specific version of the modules, such as the following example:
2319 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/couchbase-cluster?ref=v0.0.1" 24- source = " ../.. /modules/couchbase-cluster"
20+ source = " ./modules/couchbase-cluster"
2521
2622 cluster_name = " ${ var . cluster_name } "
2723 min_size = 3
@@ -81,7 +77,7 @@ module "couchbase" {
8177# ---------------------------------------------------------------------------------------------------------------------
8278
8379data "template_file" "user_data_server" {
84- template = " ${ file (" ${ path . module } /user-data/user-data.sh" )} "
80+ template = " ${ file (" ${ path . module } /examples/couchbase-cluster-simple/ user-data/user-data.sh" )} "
8581
8682 vars {
8783 cluster_asg_name = " ${ var . cluster_name } "
@@ -113,7 +109,7 @@ module "load_balancer" {
113109 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
114110 # to a specific version of the modules, such as the following example:
115111 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/load-balancer?ref=v0.0.1" 116- source = " ../.. /modules/load-balancer"
112+ source = " ./modules/load-balancer"
117113
118114 name = " ${ var . cluster_name } "
119115 vpc_id = " ${ data . aws_vpc . default . id } "
@@ -141,7 +137,7 @@ module "couchbase_target_group" {
141137 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
142138 # to a specific version of the modules, such as the following example:
143139 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/load-balancer-target-group?ref=v0.0.1" 144- source = " ../.. /modules/load-balancer-target-group"
140+ source = " ./modules/load-balancer-target-group"
145141
146142 target_group_name = " ${ var . cluster_name } -cb"
147143 asg_name = " ${ module . couchbase . asg_name } "
@@ -162,7 +158,7 @@ module "sync_gateway_target_group" {
162158 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
163159 # to a specific version of the modules, such as the following example:
164160 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/load-balancer-target-group?ref=v0.0.1" 165- source = " ../.. /modules/load-balancer-target-group"
161+ source = " ./modules/load-balancer-target-group"
166162
167163 target_group_name = " ${ var . cluster_name } -sg"
168164 asg_name = " ${ module . couchbase . asg_name } "
@@ -184,7 +180,7 @@ module "couchbase_security_group_rules" {
184180 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
185181 # to a specific version of the modules, such as the following example:
186182 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/couchbase-server-security-group-rules?ref=v0.0.1" 187- source = " ../.. /modules/couchbase-server-security-group-rules"
183+ source = " ./modules/couchbase-server-security-group-rules"
188184
189185 security_group_id = " ${ module . couchbase . security_group_id } "
190186
@@ -203,7 +199,7 @@ module "sync_gateway_security_group_rules" {
203199 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
204200 # to a specific version of the modules, such as the following example:
205201 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/sync-gateway-security-group-rules?ref=v0.0.1" 206- source = " ../.. /modules/sync-gateway-security-group-rules"
202+ source = " ./modules/sync-gateway-security-group-rules"
207203
208204 security_group_id = " ${ module . couchbase . security_group_id } "
209205
@@ -221,7 +217,7 @@ module "iam_policies" {
221217 # When using these modules in your own code, you will need to use a Git URL with a ref attribute that pins you
222218 # to a specific version of the modules, such as the following example:
223219 # source = "git::[email protected] :gruntwork-io/terraform-aws-couchbase.git//modules/couchbase-server-security-group-rules?ref=v0.0.1" 224- source = " ../.. /modules/couchbase-iam-policies"
220+ source = " ./modules/couchbase-iam-policies"
225221
226222 iam_role_id = " ${ module . couchbase . iam_role_id } "
227223}
0 commit comments