scalr_endpoint
Resource: scalr_endpoint
Manage the state of endpoints in Scalr. Create, update and destroy.
!> Warning This resource is deprecated and will be removed in the next major version.
Example Usage
resource "scalr_endpoint" "example" {
name = "my-endpoint-name"
secret_key = "my-secret-key"
timeout = 15
max_attempts = 3
url = "https://my-endpoint.url"
environment_id = "env-xxxxxxxxxx"
}
Schema
Required
environment_id
(String) ID of the environment, in the formatenv-<RANDOM STRING>
.name
(String) Name of the endpoint.url
(String) Endpoint URL.
Optional
max_attempts
(Number) Max delivery attempts.secret_key
(String, Sensitive) Secret key to sign payload.timeout
(Number) Endpoint timeout (in sec).
Read-Only
id
(String) The ID of this resource.
Useful snippets
The secret key can be generated using the random_string
resource.
resource "random_string" "r" {
length = 16
}
resource "scalr_endpoint" "example" {
# ...
secret_key = random_string.r.result
# ...
}
Import
Import is supported using the following syntax:
terraform import scalr_endpoint.example ep-xxxxxxxxxx
Updated 6 months ago