juju_model (Data Source)¶
Use the model data source to retrieve information about an existing Juju model. This is useful when you need to reference model attributes such as the model UUID in other resources. Models can be looked up either by their UUID or a combination of name and owner e.g. admin/myModel. The owner is the user that created the model and can be found with the ‘juju show-model’ command.
Example Usage¶
data "juju_model" "this" {
uuid = "1d10a751-02c1-43d5-b46b-d84fe04d6fde"
}
Schema¶
Optional¶
name(String) The name of the model.owner(String) The owner of the model.uuid(String) The UUID of the model.
Read-Only¶
id(String) The ID of this resource.