Closed vsomwanshi closed 1 year ago
Just for an update and information, this issue is fixed after adding below attribute.
Defined rosa-vpc module under rosa-cluster module for the deployment of ROSA cluster
Folder structure is like this :
βββ backend.tf
βββ datacenter
βΒ Β βββ aws_account
βΒ Β βββ dev
βΒ Β βΒ Β βββ oh.tf
βββ main.tf
βββ modules
βΒ Β βββ rosa-cluster
βΒ Β βββ main.tf
βΒ Β βββ rosa-vpc.tf
βΒ Β βββ rosa_with_new_vpc.tf
βΒ Β βββ vars.tf
βββ output.tf
βββ readme.md
βββ terraform.tfstate
βββ terraform.tfstate.d
βΒ Β βββ dev
βΒ Β βΒ Β βββ terraform.tfstate
βββ vars.tf
Defined few of the variables in main.tf under root directory and which fixed the issue
module "rosa-cluster-1" {
source = "./modules/rosa-cluster"
cluster_name = var.cluster_name
ocm_environment = var.ocm_environment
machine_cidr_block = var.machine_cidr_block
replicas = var.replicas
availability_zones = var.availability_zones
private_subnet_cidrs = var.private_subnet_cidrs
public_subnet_cidrs = var.public_subnet_cidrs
}
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Reference code for deployment of VPC:
Reference code for deployment of ROSA cluster depends_on rosa-vpc :
We are passing the cidr value from one of the variable file, and when i am trying to deploy the VPC getting below error :