This is the Stormshield SMC Terraform Provider. It allows to manage your Stormshield SMC configuration using Terraform.
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
install
command:
go install
- Set the
hostname
andapi_key
in the provider block:
provider "smc" {
hostname = "https://smc.example.com"
api_key = "your_api_key"
}
- Use a datasource or a resource
data "smc_account" "test" {
identifier = "jdoe"
}
If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).
To compile the provider, run go install
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
To generate or update documentation, run make generate
.
In order to run the full suite of Acceptance tests, run make testacc
.
Note: Acceptance tests do not create real resources, they are using mocks.
make testacc