juju_jaas_access_offer (Resource)¶
A resource that represent access to an offer when using JAAS.
Example Usage¶
resource "juju_jaas_access_offer" "development" {
offer_url = juju_offer.myoffer.url
access = "consumer"
users = ["[email protected]"]
groups = [juju_jaas_group.development.uuid]
service_accounts = ["Client-ID-1", "Client-ID-2"]
}
Schema¶
Required¶
access
(String) Level of access to grant. Changing this value will replace the Terraform resource. Valid access levels are described at https://canonical-jaas-documentation.readthedocs-hosted.com/latest/howto/manage-permissions/#add-a-permissionoffer_url
(String) The url of the offer for access management. If this is changed the resource will be deleted and a new resource will be created.
Optional¶
groups
(Set of String) List of groups to grant access. A valid group ID is the group’s UUID.roles
(Set of String) List of roles UUIDs to grant access.service_accounts
(Set of String) List of service accounts to grant access. A valid service account is the service account’s name.users
(Set of String) List of users to grant access. A valid user is the user’s name or email.
Read-Only¶
id
(String) The ID of this resource.
Import¶
Import is supported using the following syntax:
# JAAS offer access can be imported by using the URL as in the juju show-offers output and the access level.
# Example:
# $ juju show-offer mysql
# Store URL Access Description Endpoint Interface Role
# mycontroller admin/db.mysql admin MariaDB Server is one of the most ... mysql mysql provider
$ terraform import juju_jaas_access_offer.db admin/db.mysql:consumer