Configures authorization with granular permissions to services. Users can be granted rights for services on different levels.
The Service Authorization resource requires a user id, service id and an optional permission.
Basic usage:
resource "fastly_service_vcl" "demo" {
#...
}
resource "fastly_user" "user" {
# ...
}
resource "fastly_service_authorization" "auth" {
service_id = fastly_service_vcl.demo.id
user_id = fastly_user.user.id
permission = "purge_all"
}
A Fastly Service Authorization can be imported using their user ID, e.g.
$ terraform import fastly_service_authorization.demo xxxxxxxxxxxxxxxxxxxx
permission
(String) The permissions to grant the user. Can be full
, read_only
, purge_select
or purge_all
.service_id
(String) The ID of the service to grant permissions for.user_id
(String) The ID of the user which will receive the granted permissions.id
(String) The ID of this service authorization.