juju_access_model (Resource)

A resource that represent a Juju Access Model.

Example Usage

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

Schema

Required

  • access (String) Type of access to the model

  • model (String) The name of the model for access management

  • users (List of String) List 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