Disclaimer: This provider is still a work in progress: do not use it in any production setting. Expect missing attributes, wrong updates, sudden changes in resource schema, etc.
Currently, the provider is able to manage only Swarm environments, with plain docker compose environments being next in line.
There are quite a few missing things: Environment Variables are not mapped, and the same applies for Resource Control attributes.
These are the resources that are currently being worked on:
- Stack
- Secret
Generated documentation is available, along with basic examples, under the docs
folder.
Run the following command to build the provider
$ go build -o terraform-provider-portainer
First, build and install the provider.
$ make install
Then, navigate to the examples
directory.
$ cd examples
Run the following command to initialize the workspace and apply the sample configuration.
$ terraform init && terraform apply