exit 1
fi
- BRANCH=$(git branch --show-current)
+ BRANCH=$(git rev-parse --abbrev-ref HEAD)
set -x
# VPC S3 access
#
resource "aws_vpc_endpoint" "s3" {
+ count = var.vpc_id == "" ? 1 : 0
vpc_id = local.arvados_vpc_id
service_name = "com.amazonaws.${var.region_name}.s3"
}
resource "aws_vpc_endpoint_route_table_association" "compute_s3_route" {
count = var.private_subnet_id == "" ? 1 : 0
- vpc_endpoint_id = aws_vpc_endpoint.s3.id
+ vpc_endpoint_id = aws_vpc_endpoint.s3[0].id
route_table_id = aws_route_table.private_subnet_rt[0].id
}
#
# Map assigning each node name an internal IP address
# private_ip = {
-# node1 = "1.2.3.4",
+# node1 = "1.2.3.4"
# ...
# }
#
# Map assigning DNS aliases for service node names
-# dns_aliases {
-# node1 = ["alias1", "alias2", ...],
+# dns_aliases = {
+# node1 = ["alias1", "alias2", ...]
# ...
# }
\ No newline at end of file
description = "Map with every node's private IP address"
type = map(string)
default = {
- controller: "10.1.1.11",
- workbench: "10.1.1.15",
- shell: "10.1.2.17",
- keep0: "10.1.2.13",
+ controller = "10.1.1.11"
+ workbench = "10.1.1.15"
+ shell = "10.1.2.17"
+ keep0 = "10.1.2.13"
}
}
description = "Sets DNS name aliases for every service node"
type = map(list(string))
default = {
- controller: ["ws"]
- workbench: [
+ controller = ["ws"]
+ workbench = [
"workbench2",
"webshell",
"keep",