To compliment the resources currently offered by the provider, there should also be data sources that allow you to pull in things like an existing project ID by name.
For example:
data "couchbasecapella_project" "my_project" {
name = "project_name"
}
Can then be used as:
resource "couchbasecapella_hosted_cluster" "test" {
name = "cluster_name"
project_id = data.couchbasecapella_project.my_project.id
place {
single_az = true
hosted {
provider = "aws"
region = "us-west-2"
cidr = "cidr_block"
}
}
support_package {
timezone = "GMT"
support_package_type = "Basic"
}
servers {
size = 3
compute = "m5.xlarge"
services = ["data"]
storage {
storage_type = "GP3"
iops = "3000"
storage_size = "50"
}
}
}