Terraform Provider Portainer von Portainer
Terraform Provider Portainer Version 2.0.0
Version 2.0.0 ergänzt 81 neue Resources und Data Sources für die Business Edition API, behebt einen Stack-Deployment-Fehler unter Portainer 2.45 sowie ein Problem beim Anlegen von Edge-Agent-Environments und ersetzt Edge-Agent-Environments (Typ 4 und 7) bei geänderter Adresse künftig, wodurch ein neuer Edge-Key entsteht.
Release v2.0.0
Business Edition API coverage
This release roughly doubles what the provider can manage: 81 new resources and data sources covering the Business Edition API, alongside fixes for a stack deployment failure on Portainer 2.45 and a blocker that prevented Edge Agent environments from being created at all.
Nothing was removed or renamed. Every configuration valid on v1.35.0 is still valid, but read "Behaviour changes" before upgrading - one of them can replace an environment.
Behaviour changes
Edge Agent environments are replaced when their address changes. Portainer bakes the address into the edge key when the environment is created and never regenerates it, so an in-place update never actually took effect. Until now the provider emitted a warning and reported success, leaving the running agent on the old address. It now forces replacement instead, which issues a new edge key and means the agent has to be redeployed with it.
This only triggers for environment types 4 and 7, only when the address really
changed, and not when the difference is the URL scheme alone. That last
exclusion matters: Portainer normalises endpoint.URL down to the bare host, so
environments created by older provider versions hold a scheme-less address in
state and would otherwise be replaced on every apply.
Run terraform plan against your edge environments before upgrading. …