The Scalyr Terraform Provider allows you to provision assets within Scalyr.
git clone [email protected]:ansoni/terraform-provider-scalyr
go build
mkdir -p ~/.terraform.d/plugins
cp terraform-provider-scalyr ~/.terraform.d/plugins/
Different tokens are required for different resources. Having a write_config_token
and a write_log_token
will allow every resource.
endpoint
(String) Scalyr Serverread_config_token
(String) Scalyr ReadConfig API Tokenread_log_token
(String) Scalyr ReadLog API Tokenregion
(String) Scalyr Regionwrite_config_token
(String) Scalyr WriteConfig API Tokenwrite_log_token
(String) Scalyr WriteLog API Token
Create a Scalyr Configuration file.
content
(String)path
(String)
create_date
(String)id
(String) The ID of this resource.mod_date
(String)version
(Number)
Send an event to Scalyr
attributes
(Map of String)message
(String)parser
(String)
id
(String) The ID of this resource.
Read contents of a Scalyr Configuration.
path
(String)
content
(String)create_date
(String)id
(String) The ID of this resource.mod_date
(String)version
(Number)
Perform a query and assert on results.
query
(String)
end_time
(String)expected_count
(Number)max_count
(Number)query_type
(String)retry_count
(Number)retry_wait
(Number)start_time
(String)
id
(String) The ID of this resource.results
(List of Map of String)
Read all teams available to the configured token.
id
(String) The ID of this resource.teams
(Set of String)
Available in examples