Previously exported as 'vpc_cidr' and removed when preexisting vpc usage
was added. This config data is used on local.params and was mentioned on the
documentation page.
Now, it's exported as 'cluster_int_cidr' and its value is requested from AWS
so that we get the correct one whether the vpc was just created or a
previously existing one is being in use.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
name = "virtualization-type"
values = ["hvm"]
}
+}
+
+data "aws_vpc" "arvados_vpc" {
+ id = data.terraform_remote_state.vpc.outputs.arvados_vpc_id
}
\ No newline at end of file
output "vpc_id" {
value = data.terraform_remote_state.vpc.outputs.arvados_vpc_id
}
-
+output "cluster_int_cidr" {
+ value = data.aws_vpc.arvados_vpc.cidr_block
+}
output "arvados_subnet_id" {
value = data.terraform_remote_state.vpc.outputs.public_subnet_id
}