The Terraform LifeOmic provider is a plugin for Terraform that allows for the full
lifecycle management of LifeOmic resources.
Usage
See the LifeOmic Provider documentation
to get started using the LifeOmic provider. There are also some basic examples
in this repository to demonstrate usage.
Development
Building the provider
In order to build the provider from source, you'll need to have go1.19+
installed. Then run make build
.
Regenerating GQL Client
If you're picking up changes to GQL APIs, run make generate
.
If it's not downloading schema updates try running make -B generate
Using a local provider build
Refer to the upstream documentation on development overrides.
Running acceptance tests
In order to run acceptance test, you must first obtain an auth token.
Set the LIFEOMIC_TOKEN
environment variable to your token and LIFEOMIC_ACCOUNT
to your
account's unique identifier.
LIFEOMIC_TOKEN=<auth-token> LIFEOMIC_ACCOUNT=<account-id> make acctest
Wellness Offering Acceptance Tests
(must be logged in to AWS)
LIFEOMIC_TOKEN=fake-token LIFEOMIC_ACCOUNT=fake-account TESTARGS="-run='TestAccMarketplaceWellnessOffering'" LIFEOMIC_USE_LAMBDA=1 make acctest