» rightscale_cloud

Use this data source to locate and extract info about an existing cloud to pass to other rightscale resources.

» Example Usage

data "rightscale_cloud" "ec2_us_oregon" {
  filter {
    name = "EC2 us-west-2"
    cloud_type = "amazon"
  }
}

data "rightscale_cloud" "azure_us_east" {
  filter {
    name = "Azure East US"
    cloud_type = "azure"
  }
}
...

» Argument Reference

Note - an empty config block IS valid and will return the first cloud object available in your account.

The following arguments are supported:

The filter block supports:

  • name - (Optional) Cloud name as displayed in cm platform. Pattern match.

  • description - (Optional) Cloud description as displayed in cm platform. Pattern match.

  • cloud_type - (Optional) Cloud type as referenced in cm platform. Common types include: amazon, google, azure, and vscale. See supportedCloudTypes for complete list.

» Attributes Reference

The following attributes are exported:

  • name - Official cloud name as displayed in cm platform.

  • display_name - Display name for cloud as displayed in cm platform.

  • description - Cloud description as displayed in cm platform.

  • cloud_type - Cloud type as referenced in cm platform.

  • links - Hrefs of related API resources.

  • href - Href of the cloud.