Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Provider should have data sources for things like Project ID #26

@mike-mini

Description

@mike-mini

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"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions