juju_access_model (Resource)

A resource that represent a Juju Access Model.

Example Usage

resource "juju_access_model" "this" {
  model_uuid = juju_model.dev.uuid
  access     = "write"
  users      = [juju_user.dev.name, juju_user.qa.name]
}

Schema

Required

  • access (String) Type of access to the model

  • model_uuid (String) The uuid of the model for access management

  • users (Set of String) Set of users to grant access to

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

# Access Models can be imported using the model name,
# access and comma separated list of users
$ terraform import juju_access_model.development development:read:user-one,user-two