The portainer_open_amt_activate resource allows you to trigger OpenAMT activation on a Portainer-managed environment (agent endpoint).
resource "portainer_open_amt_activate" "example" {
environment_id = 1
}This resource activates OpenAMT for the specified environment. It is a one-time action that is triggered on terraform apply.
- The endpoint must be agent-based and OpenAMT must be properly configured in Portainer.
| Name | Type | Required | Description |
|---|---|---|---|
environment_id |
number | ✅ yes | ID of the endpoint where OpenAMT is activated |
| Name | Description |
|---|---|
id |
Always set to "openamt-{environment_id}" |