Add new resource and datasource for Load Balancer credentials (#255)
* Implement and test credential resource and data source * Fix descriptions in load balancer instance schema * Extend acceptance tests * Add acceptance test requirements to README * Generate updated docs * Fix linter issues * Add examples and update docs * Fix examples * Improvements from review * Remove credential data source
This commit is contained in:
parent
996b4fbf20
commit
d8734270f5
10 changed files with 628 additions and 27 deletions
17
README.md
17
README.md
|
|
@ -127,12 +127,19 @@ Terraform acceptance tests are run using the command `make test-acceptance-tf`.
|
|||
- Authentication is set as usual.
|
||||
- Optionally, the env var `TF_ACC_XXXXXX_CUSTOM_ENDPOINT` (where `XXXXXX` is the uppercase name of the service) can be set to use endpoints other than the default value.
|
||||
|
||||
Additionally, for the Resource Manager service,
|
||||
Additionally:
|
||||
|
||||
- A service account with permissions to create and delete projects is required.
|
||||
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL` must be set as the email of the service account.
|
||||
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_TOKEN` must be set as a valid token of the service account. Can also be set in the credentials file used by authentication (see [Authentication](#authentication) for more details)
|
||||
- The env var `TF_ACC_PROJECT_ID` is ignored.
|
||||
- For the Resource Manager service:
|
||||
- A service account with permissions to create and delete projects is required
|
||||
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL` must be set as the email of the service account
|
||||
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_TOKEN` must be set as a valid token of the service account. Can also be set in the credentials file used by authentication (see [Authentication](#authentication) for more details)
|
||||
- The env var `TF_ACC_PROJECT_ID` is ignored
|
||||
- For the Load Balancer service:
|
||||
- OpenStack credentials are required, as the acceptance tests use the OpenStack provider to setup the supporting infrastructure
|
||||
- These can be obtained after creating a user token through the [STACKIT Portal](https://portal.stackit.cloud/), in your project's Infrastructure API page
|
||||
- The env var `TF_ACC_OS_USER_DOMAIN_NAME` must be set as the OpenStack user domain name
|
||||
- The env var `TF_ACC_OS_USER_NAME` must be set as the OpenStack username
|
||||
- The env var `TF_ACC_OS_PASSWORD` must be set as the OpenStack password
|
||||
|
||||
**WARNING:** Acceptance tests will create real resources, which may incur in costs.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue