Rollbar project access token resource.
# Create a project
resource "rollbar_project" "foo" {
name = "Foo"
}
# Create an access token for the project
resource "rollbar_project_access_token" "bar" {
name = "bar"
project_id = rollbar_project.foo.id
scopes = ["read", "post_server_item"]
depends_on = [rollbar_project.foo]
}
The following arguments are supported:
name
- (Required) The human readable name for the token.project_Id
- (Required) ID of the Rollbar project to which this token belongs.scopes
- (Required) List of access scopes granted to the token. Possible values areread
,write
,post_server_item
, andpost_client_server
.status
- (Optional) Status of the token. Possible values areenabled
anddisabled
.rate_limit_window_count
- (Optional) Total number of calls allowed within the rate limit windowrate_limit_window_size
- (Optional) Total number of seconds that makes up the rate limit window
In addition to all arguments above, the following attributes are exported:
access_token
- Access token for Rollbar APIdate_created
- Date the project was createddate_modified
- Date the project was last modifiedcur_rate_limit_window_count
- Count of calls in the current windowcur_rate_limit_window_start
- Time when the current window began
Projects can be imported using a combination of the project_id
and
access_token
joined by a /
, e.g.
$ terraform import rollbar_project_access_token.baz 411703/d19f7ada16534b1c94e91d9da3dbae5a