|
| 1 | +# HSDP Provider |
| 2 | + |
| 3 | +The HSDP provider is used to interact with HSDP REST APIs to perform adminstrative configuration of platform |
| 4 | +resources. |
| 5 | + |
| 6 | +## Example Usage |
| 7 | + |
| 8 | +```hcl |
| 9 | +# Many variables are optional |
| 10 | +
|
| 11 | +variable "region" {} |
| 12 | +variable "environment" {} |
| 13 | +variable "iam_url" {} |
| 14 | +variable "idm_url" {} |
| 15 | +variable "oauth2_client_id" {} |
| 16 | +variable "oauth2_password" {} |
| 17 | +variable "org_id" {} |
| 18 | +variable "org_admin_username" {} |
| 19 | +variable "org_admin_password" {} |
| 20 | +variable "shared_key" {} |
| 21 | +variable "secret_key" {} |
| 22 | +variable "cartel_host" {} |
| 23 | +variable "cartel_token" {} |
| 24 | +variable "cartel_secret" {} |
| 25 | +variable "cartel_skip_verify" {} |
| 26 | +variable "cartel_no_tls" {} |
| 27 | +variable "retry_max" |
| 28 | +
|
| 29 | +
|
| 30 | +## Configure the HSDP Provider |
| 31 | +
|
| 32 | +provider "hsdp" { |
| 33 | + region = "us-east" |
| 34 | + environment = "client-test" |
| 35 | + iam_url = var.iam_url |
| 36 | + idm_url = var.idm_url |
| 37 | + oauth2_client_id = var.oauth2_client_id |
| 38 | + oauth2_password = var.oauth2_password |
| 39 | + org_id = var.org_id |
| 40 | + org_admin_username = var.org_admin_username |
| 41 | + org_admin_password = var.org_admin_password |
| 42 | + shared_key = var.shared_key |
| 43 | + secret_key = var.secret_key |
| 44 | + debug = true |
| 45 | + debug_log = "/tmp/provider.log" |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | +## Argument Reference |
| 50 | + |
| 51 | +The following arguments are supported: |
| 52 | + |
| 53 | +* `region` - (Optional) The HSDP region to use [us-east, eu-west, sa1, ...] |
| 54 | + |
| 55 | +* `environment` - (Optional) The HSDP environment to use within region [client-test, prod] |
| 56 | + |
| 57 | +* `iam_url` - (Optional) IAM API endpoint (e.g. https://iam-client-test.us-east.philips-healthsuite.com). Auto-discovered when region and environment are specified. |
| 58 | + |
| 59 | +* `idm_url` - (Optioanl) IDM API endpoint (e.g. https://idm-client-test.us-east.philips-healthsuite.com). Auto-discovered when region and environment are specified. |
| 60 | + |
| 61 | +* `credentials_url` - (Optional) S3 Credenials API endpoint (e.g. https://s3creds-client-test.us-east.philips-healthsuite.com). Auto-discovered when region and environment are specified. |
| 62 | + |
| 63 | +* `oauth2_client_id` - (Required) The OAuth2 client ID as provided by HSDP |
| 64 | + |
| 65 | +* `oauth2_password` - (Required) The OAuth2 password as provided by HSDP |
| 66 | + |
| 67 | +* `service_id` - (Optional) The service ID to use for IAM org admin operations (conflicts with: `org_admin_username`) |
| 68 | + |
| 69 | +* `service_private_key` - (Optional) The service private key to use for IAM org admin operations (conflicts with: `org_admin_password`) |
| 70 | + |
| 71 | +* `org_admin_username` - (Optional) Your IAM admin username. |
| 72 | + |
| 73 | +* `org_admin_password` - (Optional) Your IAM admin passowrd. |
| 74 | + |
| 75 | +* `org_id` - (Optional) Your IAM root ORG id as provided by HSDP |
| 76 | + |
| 77 | +* `shared_key` - (Optional) The shared key as provided by HSDP. Actions which require API signing will not work if this value is missing. |
| 78 | + |
| 79 | +* `secret_key` - (Optional) The secret key as provided by HSDP. Actions which require API signing will not work if this value is missing. |
| 80 | + |
| 81 | +* `cartel_host` - (Optional) The cartel host as provided by HSDP. Auto-discovered when region and environment are specified. |
| 82 | + |
| 83 | +* `cartel_token` - (Optional) The cartel token as provided by HSDP. |
| 84 | + |
| 85 | +* `cartel_secret` - (Optional) The cartel secret as provided by HSDP. |
| 86 | + |
| 87 | +* `retry_max` - (Optiona) Integer, when > 0 will use a retry-able HTTP client and retry requests when applicable. |
| 88 | + |
| 89 | +* `debug` - (Optional) If set to true, outputs details on API calls |
| 90 | + |
| 91 | +* `debug_log` - (Optional) If set to a path, when debug is enabled outputs details to this file |
| 92 | + |
0 commit comments