Last active
April 14, 2020 19:13
-
-
Save dancrumb/7dc7a6a0974b7d903e34466fd77accc0 to your computer and use it in GitHub Desktop.
Terraform Auth0 issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform v0.12.24 | |
Initializing plugins and modules... | |
2020/04/14 16:25:01 [DEBUG] Using modified User-Agent: Terraform/0.12.24 TFC/c662be169b | |
local_file.config-file: Creating... | |
local_file.config-file: Creation complete after 0s [id=2eef5382ece0ae7d70ba3890dbba6b2984a5472a] | |
auth0_resource_server.ahana_api: Modifying... [id=5bdc44c7bc84de5bdc2721d5] | |
aws_s3_bucket.access-logging: Creating... | |
aws_s3_bucket.access-logging: Creation complete after 5s [id=ahana-access-logging-local] | |
aws_s3_bucket.uploadbucket: Modifying... [id=uploads.local.ahanapediatrics.com] | |
aws_s3_bucket.downloadsBucket: Modifying... [id=downloads.ahanapediatrics.com] | |
aws_s3_bucket.uploadbucket: Modifications complete after 5s [id=uploads.local.ahanapediatrics.com] | |
data.aws_iam_policy_document.upload: Refreshing state... | |
aws_s3_bucket.downloadsBucket: Modifications complete after 6s [id=downloads.ahanapediatrics.com] | |
Error: 400 Bad Request: Payload validation error: 'Missing required property: value' on property scopes[8]. | |
on auth0.tf line 100, in resource "auth0_resource_server" "ahana_api": | |
100: resource auth0_resource_server "ahana_api" [4m{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020/04/14 14:13:33 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. | |
Use TF_LOG=TRACE to see Terraform's internal logs. | |
---- | |
2020/04/14 14:13:33 [INFO] Terraform version: 0.12.24 | |
2020/04/14 14:13:33 [INFO] Go runtime version: go1.12.13 | |
2020/04/14 14:13:33 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "-no-color"} | |
2020/04/14 14:13:33 [DEBUG] Attempting to open CLI config file: /Users/danrumney/.terraformrc | |
2020/04/14 14:13:33 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/04/14 14:13:33 Loading CLI configuration from /Users/danrumney/.terraform.d/credentials.tfrc.json | |
2020/04/14 14:13:33 [DEBUG] checking for credentials in "/Users/danrumney/.terraform.d/plugins" | |
2020/04/14 14:13:33 [INFO] CLI command args: []string{"apply", "-no-color"} | |
2020/04/14 14:13:33 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility. | |
Use TF_LOG=TRACE to see Terraform's internal logs. | |
---- | |
2020/04/14 14:13:33 [DEBUG] New state was assigned lineage "b3d238a6-4cf6-7aff-988c-5ace014d52f7" | |
2020/04/14 14:13:33 [DEBUG] checking for provider in "." | |
2020/04/14 14:13:33 [DEBUG] checking for provider in "/usr/local/bin" | |
2020/04/14 14:13:33 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" | |
2020/04/14 14:13:33 [DEBUG] found provider "terraform-provider-auth0_v0.8.2_x4" | |
2020/04/14 14:13:33 [DEBUG] found provider "terraform-provider-local_v1.4.0_x4" | |
2020/04/14 14:13:33 [DEBUG] checking for provider in "/Users/danrumney/.terraform.d/plugins" | |
2020/04/14 14:13:33 [WARN] found legacy provider "terraform-provider-auth0" | |
2020/04/14 14:13:33 [WARN] found legacy provider "terraform-provider-sentry" | |
2020/04/14 14:13:33 [DEBUG] found valid plugin: "local", "1.4.0", "/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4" | |
2020/04/14 14:13:33 [DEBUG] found valid plugin: "auth0", "0.0.0", "/Users/danrumney/.terraform.d/plugins/terraform-provider-auth0" | |
2020/04/14 14:13:33 [DEBUG] found valid plugin: "sentry", "0.0.0", "/Users/danrumney/.terraform.d/plugins/terraform-provider-sentry" | |
2020/04/14 14:13:33 [DEBUG] found valid plugin: "auth0", "0.8.2", "/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4" | |
2020/04/14 14:13:33 [DEBUG] checking for provisioner in "." | |
2020/04/14 14:13:33 [DEBUG] checking for provisioner in "/usr/local/bin" | |
2020/04/14 14:13:33 [DEBUG] checking for provisioner in ".terraform/plugins/darwin_amd64" | |
2020/04/14 14:13:33 [DEBUG] checking for provisioner in "/Users/danrumney/.terraform.d/plugins" | |
2020/04/14 14:13:33 [INFO] backend/local: starting Apply operation | |
2020-04-14T14:13:34.037-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:34.069-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4] | |
2020-04-14T14:13:34.072-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38596 | |
2020-04-14T14:13:34.073-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 | |
2020-04-14T14:13:34.088-0500 [INFO] plugin.terraform-provider-auth0_v0.8.2_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:34.087-0500 | |
2020-04-14T14:13:34.123-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: plugin address: address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin691530331 network=unix timestamp=2020-04-14T14:13:34.123-0500 | |
2020-04-14T14:13:34.123-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:34.193-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38596 | |
2020-04-14T14:13:34.193-0500 [DEBUG] plugin: plugin exited | |
2020-04-14T14:13:34.194-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:34.224-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4] | |
2020-04-14T14:13:34.226-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4 pid=38597 | |
2020-04-14T14:13:34.226-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4 | |
2020-04-14T14:13:34.237-0500 [INFO] plugin.terraform-provider-local_v1.4.0_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:34.237-0500 | |
2020-04-14T14:13:34.273-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:34.273-0500 [DEBUG] plugin.terraform-provider-local_v1.4.0_x4: plugin address: address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin188848904 network=unix timestamp=2020-04-14T14:13:34.273-0500 | |
2020-04-14T14:13:34.349-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-local_v1.4.0_x4 pid=38597 | |
2020-04-14T14:13:34.349-0500 [DEBUG] plugin: plugin exited | |
2020/04/14 14:13:34 [INFO] terraform: building graph: GraphTypeValidate | |
2020/04/14 14:13:34 [DEBUG] ProviderTransformer: "auth0_role.support" (*terraform.NodeValidatableResource) needs provider.auth0 | |
2020/04/14 14:13:34 [DEBUG] ProviderTransformer: "auth0_resource_server.demo_api" (*terraform.NodeValidatableResource) needs provider.auth0 | |
2020/04/14 14:13:34 [DEBUG] pruning unused provider.local | |
ted graph transform *terraform.PruneProviderTransformer with new graph: | |
auth0_resource_server.demo_api - *terraform.NodeValidatableResource | |
provider.auth0 - *terraform.NodeApplyableProvider | |
auth0_role.support - *terraform.NodeValidatableResource | |
provider.auth0 - *terraform.NodeApplyableProvider | |
local.app_url - *terraform.NodeLocal | |
local.scopes - *terraform.NodeLocal | |
provider.auth0 - *terraform.NodeApplyableProvider | |
var.auth0_domain - *terraform.NodeRootVariable | |
var.auth0_mgmt_client_id - *terraform.NodeRootVariable | |
var.auth0_mgmt_client_secret - *terraform.NodeRootVariable | |
var.base_domain - *terraform.NodeRootVariable | |
var.base_domain_port - *terraform.NodeRootVariable | |
var.instance_count - *terraform.NodeRootVariable | |
var.url - *terraform.NodeRootVariable | |
var.workspace - *terraform.NodeRootVariable | |
------ | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_domain" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_id" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.workspace" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.base_domain" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "local.scopes" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.url" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.instance_count" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [local.scopes] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [auth0_resource_server.demo_api] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "local.app_url" references: [var.url] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_secret" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.base_domain_port" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "provider.auth0" references: [var.auth0_domain var.auth0_mgmt_client_id var.auth0_mgmt_client_secret] | |
2020/04/14 14:13:34 [DEBUG] Starting graph walk: walkValidate | |
2020-04-14T14:13:34.353-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:34.386-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4] | |
2020-04-14T14:13:34.389-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38598 | |
2020-04-14T14:13:34.389-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 | |
2020-04-14T14:13:34.403-0500 [INFO] plugin.terraform-provider-auth0_v0.8.2_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:34.402-0500 | |
2020-04-14T14:13:34.433-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:34.433-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: plugin address: address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin171487269 network=unix timestamp=2020-04-14T14:13:34.433-0500 | |
2020-04-14T14:13:34.510-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38598 | |
2020-04-14T14:13:34.510-0500 [DEBUG] plugin: plugin exited | |
2020/04/14 14:13:34 [INFO] backend/local: apply calling Refresh | |
2020/04/14 14:13:34 [INFO] terraform: building graph: GraphTypeRefresh | |
2020/04/14 14:13:34 [DEBUG] ProviderTransformer: "auth0_resource_server.demo_api" (*terraform.NodeRefreshableManagedResource) needs provider.auth0 | |
2020/04/14 14:13:34 [DEBUG] ProviderTransformer: "auth0_role.support" (*terraform.NodeRefreshableManagedResource) needs provider.auth0 | |
2020/04/14 14:13:34 [DEBUG] pruning unused provider.local | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.base_domain_port" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_id" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.workspace" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "local.app_url" references: [var.url] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "provider.auth0" references: [var.auth0_mgmt_client_id var.auth0_mgmt_client_secret var.auth0_domain] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [auth0_resource_server.demo_api] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.instance_count" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.url" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.base_domain" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "local.scopes" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [local.scopes] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_domain" references: [] | |
2020/04/14 14:13:34 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_secret" references: [] | |
2020/04/14 14:13:34 [DEBUG] Starting graph walk: walkRefresh | |
2020-04-14T14:13:34.513-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:34.543-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4] | |
2020-04-14T14:13:34.547-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38599 | |
2020-04-14T14:13:34.547-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 | |
2020-04-14T14:13:34.558-0500 [INFO] plugin.terraform-provider-auth0_v0.8.2_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:34.558-0500 | |
2020-04-14T14:13:34.590-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:34.590-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: plugin address: address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin498556250 network=unix timestamp=2020-04-14T14:13:34.590-0500 | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [] | |
auth0_resource_server.demo_api: Refreshing state... [id=5e960a129fe068090f422eb9] | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: 2020/04/14 14:13:35 | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: GET /api/v2/resource-servers/5e960a129fe068090f422eb9 HTTP/1.1 | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Host: local-ohanapediatrics.auth0.com | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: User-Agent: Go-Auth0-SDK/v3; Terraform/1.8.0 | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Length: 5 | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Type: application/json | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Accept-Encoding: gzip | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: null | |
2020-04-14T14:13:35.279-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: 2020/04/14 14:13:35 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: HTTP/2.0 200 OK | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Cache-Control: no-cache | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Type: application/json; charset=utf-8 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Date: Tue, 14 Apr 2020 19:13:35 GMT | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Baggage-Auth0-Request-Id: 6a0acf9f61c140924304bddb | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Sampled: true | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Spanid: 7a130c075b86c65f | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Traceid: 4daa4af70f9e133c | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Server: nginx | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Strict-Transport-Security: max-age=15724800 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Vary: origin,accept-encoding | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: X-Ratelimit-Limit: 50 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: X-Ratelimit-Remaining: 49 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: X-Ratelimit-Reset: 1586891616 | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: X-Robots-Tag: noindex, nofollow, nosnippet, noarchive | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: {"id":"5e960a129fe068090f422eb9","name":"Bug Demo API","identifier":"https://ahanapediatrics.com/bug","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":300,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"appointment:read","description":"Read Appointments"},{"value":"medicalHome:update","description":"Modify Medical Home information"},{"value":"provider:create","description":"Create a Provider account"},{"value":"file:download","description":"Download files"},{"value":"appointment:update","description":"Update Appointments"},{"value":"patient:search","description":"Search Patients"},{"value":"file:upload","description":"Upload files"},{"value":"admin:access","description":"Access Admin functions"},{"value":"addendum:create","description":"Upload files"}]} | |
2020-04-14T14:13:35.547-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020/04/14 14:13:35 [DEBUG] Resource instance state not found for node "auth0_role.support", instance auth0_role.support | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [] | |
2020-04-14T14:13:35.556-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38599 | |
2020-04-14T14:13:35.556-0500 [DEBUG] plugin: plugin exited | |
2020/04/14 14:13:35 [INFO] backend/local: apply calling Plan | |
2020/04/14 14:13:35 [INFO] terraform: building graph: GraphTypePlan | |
2020/04/14 14:13:35 [DEBUG] ProviderTransformer: "auth0_role.support" (*terraform.NodePlannableResource) needs provider.auth0 | |
2020/04/14 14:13:35 [DEBUG] ProviderTransformer: "auth0_resource_server.demo_api" (*terraform.NodePlannableResource) needs provider.auth0 | |
2020/04/14 14:13:35 [DEBUG] pruning unused provider.local | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "local.scopes" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.url" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.base_domain_port" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [local.scopes] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "local.app_url" references: [var.url] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.workspace" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.base_domain" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.instance_count" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "provider.auth0" references: [var.auth0_domain var.auth0_mgmt_client_id var.auth0_mgmt_client_secret] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [auth0_resource_server.demo_api] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_secret" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.auth0_domain" references: [] | |
2020/04/14 14:13:35 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_id" references: [] | |
2020/04/14 14:13:35 [DEBUG] Starting graph walk: walkPlan | |
2020-04-14T14:13:35.560-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:35.590-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4] | |
2020-04-14T14:13:35.594-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38604 | |
2020-04-14T14:13:35.594-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 | |
2020-04-14T14:13:35.606-0500 [INFO] plugin.terraform-provider-auth0_v0.8.2_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:35.606-0500 | |
2020-04-14T14:13:35.637-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:35.637-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: plugin address: network=unix address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin755865571 timestamp=2020-04-14T14:13:35.637-0500 | |
2020/04/14 14:13:36 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [] | |
2020/04/14 14:13:36 [DEBUG] Resource instance state not found for node "auth0_role.support", instance auth0_role.support | |
2020/04/14 14:13:36 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [] | |
2020-04-14T14:13:36.282-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38604 | |
2020-04-14T14:13:36.282-0500 [DEBUG] plugin: plugin exited | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
~ update in-place | |
Terraform will perform the following actions: | |
# auth0_resource_server.demo_api will be updated in-place | |
2020/04/14 14:13:36 [DEBUG] command: asking for input: "Do you want to perform these actions?" | |
~ resource "auth0_resource_server" "demo_api" { | |
allow_offline_access = false | |
enforce_policies = false | |
id = "5e960a129fe068090f422eb9" | |
identifier = "https://ahanapediatrics.com/bug" | |
name = "Bug Demo API" | |
options = {} | |
signing_alg = "RS256" | |
skip_consent_for_verifiable_first_party_clients = true | |
token_lifetime = 300 | |
token_lifetime_for_web = 7200 | |
scopes { | |
description = "Access Admin functions" | |
value = "admin:access" | |
} | |
scopes { | |
description = "Create a Provider account" | |
value = "provider:create" | |
} | |
scopes { | |
description = "Download files" | |
value = "file:download" | |
} | |
scopes { | |
description = "Modify Medical Home information" | |
value = "medicalHome:update" | |
} | |
scopes { | |
description = "Read Appointments" | |
value = "appointment:read" | |
} | |
scopes { | |
description = "Search Patients" | |
value = "patient:search" | |
} | |
+ scopes { | |
+ description = "Show bug" | |
+ value = "bug:demo" | |
} | |
scopes { | |
description = "Update Appointments" | |
value = "appointment:update" | |
} | |
scopes { | |
description = "Upload files" | |
value = "addendum:create" | |
} | |
scopes { | |
description = "Upload files" | |
value = "file:upload" | |
} | |
} | |
# auth0_role.support will be created | |
+ resource "auth0_role" "support" { | |
+ description = "Ahana Demo Role" | |
+ id = (known after apply) | |
+ name = "Demo - (Managed by Terraform)" | |
+ role_id = (known after apply) | |
+ permissions { | |
+ name = "provider:create" | |
+ resource_server_identifier = "https://ahanapediatrics.com/bug" | |
} | |
} | |
Plan: 1 to add, 1 to change, 0 to destroy. | |
Do you want to perform these actions? | |
Terraform will perform the actions described above. | |
Only 'yes' will be accepted to approve. | |
Enter a value: | |
2020/04/14 14:13:39 [INFO] backend/local: apply calling Apply | |
2020/04/14 14:13:39 [INFO] terraform: building graph: GraphTypeApply | |
2020/04/14 14:13:39 [DEBUG] Resource state not found for node "auth0_role.support", instance auth0_role.support | |
2020/04/14 14:13:39 [DEBUG] ProviderTransformer: "auth0_role.support" (*terraform.NodeApplyableResourceInstance) needs provider.auth0 | |
2020/04/14 14:13:39 [DEBUG] ProviderTransformer: "auth0_resource_server.demo_api (prepare state)" (*terraform.NodeApplyableResource) needs provider.auth0 | |
2020/04/14 14:13:39 [DEBUG] ProviderTransformer: "auth0_role.support (prepare state)" (*terraform.NodeApplyableResource) needs provider.auth0 | |
2020/04/14 14:13:39 [DEBUG] ProviderTransformer: "auth0_resource_server.demo_api" (*terraform.NodeApplyableResourceInstance) needs provider.auth0 | |
2020/04/14 14:13:39 [DEBUG] pruning unused provider.local | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "auth0_role.support" references: [auth0_resource_server.demo_api (prepare state) auth0_resource_server.demo_api auth0_resource_server.demo_api] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.base_domain" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.instance_count" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "local.scopes" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "local.app_url" references: [var.url] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.workspace" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.base_domain_port" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_id" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api (prepare state)" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "auth0_role.support (prepare state)" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "auth0_resource_server.demo_api" references: [local.scopes] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.url" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.auth0_mgmt_client_secret" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "var.auth0_domain" references: [] | |
2020/04/14 14:13:39 [DEBUG] ReferenceTransformer: "provider.auth0" references: [var.auth0_mgmt_client_secret var.auth0_domain var.auth0_mgmt_client_id] | |
2020/04/14 14:13:39 [DEBUG] Starting graph walk: walkApply | |
2020-04-14T14:13:39.351-0500 [INFO] plugin: configuring client automatic mTLS | |
2020-04-14T14:13:39.383-0500 [DEBUG] plugin: starting plugin: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 args=[/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4] | |
2020-04-14T14:13:39.385-0500 [DEBUG] plugin: plugin started: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38611 | |
2020-04-14T14:13:39.385-0500 [DEBUG] plugin: waiting for RPC address: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 | |
2020-04-14T14:13:39.397-0500 [INFO] plugin.terraform-provider-auth0_v0.8.2_x4: configuring server automatic mTLS: timestamp=2020-04-14T14:13:39.396-0500 | |
2020-04-14T14:13:39.428-0500 [DEBUG] plugin: using plugin: version=5 | |
2020-04-14T14:13:39.429-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: plugin address: address=/var/folders/61/6wfvwq9s2bq4hgwm88t3r_dc0000gn/T/plugin787790446 network=unix timestamp=2020-04-14T14:13:39.428-0500 | |
auth0_resource_server.demo_api: Modifying... [id=5e960a129fe068090f422eb9] | |
2020/04/14 14:13:40 [DEBUG] auth0_resource_server.demo_api: applying the planned Update change | |
2020-04-14T14:13:40.117-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: 2020/04/14 14:13:40 | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: PATCH /api/v2/resource-servers/5e960a129fe068090f422eb9 HTTP/1.1 | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Host: local-ohanapediatrics.auth0.com | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: User-Agent: Go-Auth0-SDK/v3; Terraform/1.8.0 | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Length: 86 | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Type: application/json | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Accept-Encoding: gzip | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: {"scopes":[{},{},{},{},{},{},{"value":"bug:demo","description":"Show bug"},{},{},{}]} | |
2020-04-14T14:13:40.118-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: 2020/04/14 14:13:40 | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: HTTP/2.0 400 Bad Request | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Cache-Control: no-cache | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Content-Type: application/json; charset=utf-8 | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Date: Tue, 14 Apr 2020 19:13:40 GMT | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Baggage-Auth0-Request-Id: e6b060e856d50fec93212fb8 | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Sampled: true | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Spanid: 684cb44b6cd36c38 | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Ot-Tracer-Traceid: 708746af0202d2c3 | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Server: nginx | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: Vary: origin,accept-encoding | |
2020-04-14T14:13:40.338-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020-04-14T14:13:40.339-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: {"statusCode":400,"error":"Bad Request","message":"Payload validation error: 'Missing required property: value' on property scopes[9].","errorCode":"invalid_body"} | |
2020-04-14T14:13:40.339-0500 [DEBUG] plugin.terraform-provider-auth0_v0.8.2_x4: | |
2020/04/14 14:13:40 [DEBUG] auth0_resource_server.demo_api: apply errored, but we're indicating that via the Error pointer rather than returning it: 400 Bad Request: Payload validation error: 'Missing required property: value' on property scopes[9]. | |
2020/04/14 14:13:40 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: 400 Bad Request: Payload validation error: 'Missing required property: value' on property scopes[9]. | |
2020/04/14 14:13:40 [ERROR] <root>: eval: *terraform.EvalSequence, err: 400 Bad Request: Payload validation error: 'Missing required property: value' on property scopes[9]. | |
Error: 400 Bad Request: Payload validation error: 'Missing required property: value' on property scopes[9]. | |
on auth0.tf line 36, in resource "auth0_resource_server" "demo_api": | |
36: resource auth0_resource_server "demo_api" { | |
2020-04-14T14:13:40.370-0500 [DEBUG] plugin: plugin process exited: path=/Users/danrumney/Projects/tf-demo/.terraform/plugins/darwin_amd64/terraform-provider-auth0_v0.8.2_x4 pid=38611 | |
2020-04-14T14:13:40.370-0500 [DEBUG] plugin: plugin exited |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "auth0_domain" { | |
type = string | |
} | |
variable "auth0_mgmt_client_id" { | |
type = string | |
} | |
variable "auth0_mgmt_client_secret" { | |
type = string | |
} | |
provider "auth0" { | |
domain = var.auth0_domain | |
client_id = var.auth0_mgmt_client_id | |
client_secret = var.auth0_mgmt_client_secret | |
version = ">=0.8.2" | |
} | |
locals { | |
scopes = { | |
"appointment:read" = "Read Appointments" | |
"appointment:update" = "Update Appointments" | |
"patient:search" = "Search Patients" | |
"file:upload" = "Upload files" | |
"file:download" = "Download files" | |
"medicalHome:update" = "Modify Medical Home information" | |
"addendum:create" = "Upload files" | |
"admin:access" = "Access Admin functions" | |
"provider:create" = "Create a Provider account" | |
"bug:demo" = "Show bug" | |
} | |
} | |
resource auth0_resource_server "demo_api" { | |
name = "Bug Demo API" | |
identifier = "https://ahanapediatrics.com/bug" | |
token_lifetime = 300 | |
skip_consent_for_verifiable_first_party_clients = true | |
allow_offline_access = false | |
signing_alg = "RS256" | |
dynamic scopes { | |
for_each = local.scopes | |
content { | |
value = scopes.key | |
description = scopes.value | |
} | |
} | |
} | |
resource "auth0_role" "support" { | |
name = "Demo - (Managed by Terraform)" | |
description = "Ahana Demo Role" | |
permissions { | |
resource_server_identifier = auth0_resource_server.demo_api.identifier | |
name = "provider:create" | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform v0.12.24 | |
Configuring remote state backend... | |
Initializing Terraform configuration... | |
2020/04/14 16:21:40 [DEBUG] Using modified User-Agent: Terraform/0.12.24 TFC/c662be169b | |
Refreshing Terraform state in-memory prior to plan... | |
The refreshed state will be used to calculate this plan, but will not be | |
persisted to local or remote state storage. | |
random_string.db_password: Refreshing state... [id=none] | |
aws_iam_user.deployer: Refreshing state... [id=local-deployer] | |
aws_ssm_parameter.GDRIVE_WIM_PRIVATE_KEY_ID: Refreshing state... [id=/ahana/local/GDRIVE_WIM_PRIVATE_KEY_ID] | |
aws_ssm_parameter.EMAILER_URL: Refreshing state... [id=/ahana/local/EMAILER_URL] | |
data.aws_iam_policy_document.x-ray: Refreshing state... | |
data.aws_iam_policy_document.sms_publish: Refreshing state... | |
aws_sqs_queue.callout-queue: Refreshing state... [id=https://sqs.us-west-2.amazonaws.com/901908515247/callout-queue-local] | |
aws_iam_user.params-reader: Refreshing state... [id=local-params-reader] | |
aws_iam_user.sms-publisher: Refreshing state... [id=local-sms-publisher] | |
aws_ssm_parameter.STRIPE_PUBLIC_KEY: Refreshing state... [id=/ahana/local/STRIPE_PUBLIC_KEY] | |
aws_iam_user.email-sender: Refreshing state... [id=local-email-sender] | |
aws_iam_user.x-ray: Refreshing state... [id=local-x-ray] | |
aws_iam_user.topics-publisher: Refreshing state... [id=local-topics-publisher] | |
aws_cloudwatch_log_group.audit-log_group: Refreshing state... [id=local-audit-log-group] | |
aws_iam_user.uploader: Refreshing state... [id=local-file-upload] | |
aws_ssm_parameter.AUTH0_CONNECTION: Refreshing state... [id=/ahana/local/AUTH0_CONNECTION] | |
aws_ssm_parameter.TWILIO_ACCOUNT_SID: Refreshing state... [id=/ahana/local/TWILIO_ACCOUNT_SID] | |
aws_sqs_queue.streamer-queue: Refreshing state... [id=https://sqs.us-west-2.amazonaws.com/901908515247/streamer-queue-local] | |
aws_iam_user.auditor: Refreshing state... [id=local-audit-log-writer] | |
aws_ssm_parameter.JWT_SECRET: Refreshing state... [id=/ahana/local/JWT_SECRET] | |
aws_sns_topic.visits_topic: Refreshing state... [id=arn:aws:sns:us-west-2:901908515247:visits_local] | |
aws_ssm_parameter.FILE_UPLOAD_BUCKET: Refreshing state... [id=/ahana/local/FILE_UPLOAD_BUCKET] | |
aws_cloudwatch_event_rule.everyDayAt3pmUTC: Refreshing state... [id=once-a-day-at-3pm-local] | |
aws_ssm_parameter.sqsRegion: Refreshing state... [id=/ahana/local/SQS_REGION] | |
aws_ssm_parameter.SKIP_DAILY_REPORT: Refreshing state... [id=/ahana/local/SKIP_DAILY_REPORT] | |
aws_cloudwatch_event_rule.everyDayAt6amUTC: Refreshing state... [id=once-a-day-at-6am-local] | |
aws_ssm_parameter.TWILIO_AUTH_TOKEN: Refreshing state... [id=/ahana/local/TWILIO_AUTH_TOKEN] | |
aws_ssm_parameter.GDRIVE_WIM_FOLDER: Refreshing state... [id=/ahana/local/GDRIVE_WIM_FOLDER] | |
aws_ssm_parameter.auth0MgmtClientSecret: Refreshing state... [id=/ahana/local/AUTH0_MGMT_CLIENT_SECRET] | |
aws_ssm_parameter.GDRIVE_PRIVATE_KEY: Refreshing state... [id=/ahana/local/GDRIVE_PRIVATE_KEY] | |
aws_ssm_parameter.GDRIVE_WIM_PRIVATE_KEY: Refreshing state... [id=/ahana/local/GDRIVE_WIM_PRIVATE_KEY] | |
aws_ssm_parameter.GDRIVE_UPLOAD_FOLDER: Refreshing state... [id=/ahana/local/GDRIVE_UPLOAD_FOLDER] | |
aws_ssm_parameter.CHECKIN_PATIENT_ID: Refreshing state... [id=/ahana/local/CHECKIN_PATIENT_ID] | |
aws_ssm_parameter.GDRIVE_PRIVATE_KEY_ID: Refreshing state... [id=/ahana/local/GDRIVE_PRIVATE_KEY_ID] | |
aws_ssm_parameter.TWILIO_API_SECRET: Refreshing state... [id=/ahana/local/TWILIO_API_SECRET] | |
aws_ssm_parameter.TWILIO_API_KEY: Refreshing state... [id=/ahana/local/TWILIO_API_KEY] | |
aws_ssm_parameter.siteDomain: Refreshing state... [id=/ahana/local/SITE_DOMAIN] | |
aws_ssm_parameter.REPORT_RECIPIENTS: Refreshing state... [id=/ahana/local/REPORT_RECIPIENTS] | |
aws_ssm_parameter.AUTH0_CONNECTION_ID: Refreshing state... [id=/ahana/local/AUTH0_CONNECTION_ID] | |
aws_ssm_parameter.SES_REGION: Refreshing state... [id=/ahana/local/SES_REGION] | |
aws_ssm_parameter.auth0Domain: Refreshing state... [id=/ahana/local/AUTH0_DOMAIN] | |
data.aws_caller_identity.current: Refreshing state... | |
aws_ssm_parameter.authCallbackUrl: Refreshing state... [id=/ahana/local/AUTH_CALLBACK_URL] | |
aws_ssm_parameter.snsRegion: Refreshing state... [id=/ahana/local/SNS_REGION] | |
aws_iam_user.topics-consumer: Refreshing state... [id=local-topics-consumer] | |
aws_ssm_parameter.auth0MgmtClientId: Refreshing state... [id=/ahana/local/AUTH0_MGMT_CLIENT_ID] | |
data.aws_iam_policy_document.email-sender: Refreshing state... | |
aws_route53_zone.environment-zone: Refreshing state... [id=Z3OVW1KW359W1C] | |
data.aws_iam_policy_document.ec2-params-read: Refreshing state... | |
aws_ssm_parameter.GDRIVE_WIM_EMAIL: Refreshing state... [id=/ahana/local/GDRIVE_WIM_EMAIL] | |
aws_ecr_repository.jobs: Refreshing state... [id=ahana-pediatrics/jobs] | |
aws_route53_zone.root-zone: Refreshing state... [id=ZEH35P0OMN6O0] | |
aws_ssm_parameter.STRIPE_API_KEY: Refreshing state... [id=/ahana/local/STRIPE_API_KEY] | |
aws_iam_role.taskRunnerRole: Refreshing state... [id=local-task-runner-role] | |
aws_cloudwatch_event_rule.everyDayAt11amUTC: Refreshing state... [id=once-a-day-at-11am-local] | |
aws_s3_bucket.webBucket: Refreshing state... [id=app.local.ahanapediatrics.com] | |
data.aws_api_gateway_rest_api.rest-api: Refreshing state... | |
aws_cloudfront_origin_access_identity.web_oai: Refreshing state... [id=E320HA84CV2P26] | |
aws_ssm_parameter.dbPassword: Refreshing state... [id=/ahana/local/SQL_PASS] | |
aws_ssm_parameter.auth0MgmtDomain: Refreshing state... [id=/ahana/local/AUTH0_MGMT_DOMAIN] | |
aws_ssm_parameter.GDRIVE_EMAIL: Refreshing state... [id=/ahana/local/GDRIVE_EMAIL] | |
aws_ssm_parameter.EMAILER_REQUEST_SECRET_KEY: Refreshing state... [id=/ahana/local/EMAILER_REQUEST_SECRET_KEY] | |
aws_iam_policy.x-ray: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-x-ray] | |
aws_iam_access_key.deployment-key: Refreshing state... [id=AKIA5D7PPZGX5PO3TVH2] | |
aws_ssm_parameter.dbHost: Refreshing state... [id=/ahana/local/SQL_HOST] | |
aws_ssm_parameter.dbName: Refreshing state... [id=/ahana/local/SQL_DATABASE] | |
aws_ssm_parameter.dbUser: Refreshing state... [id=/ahana/local/SQL_USER] | |
aws_ssm_parameter.dbPort: Refreshing state... [id=/ahana/local/SQL_PORT] | |
aws_iam_policy.sms_publish: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-sms-publish] | |
sentry_project.ahana: Refreshing state... [id=ohana-application] | |
aws_iam_access_key.email-key: Refreshing state... [id=AKIA5D7PPZGX7BLWGDPJ] | |
aws_iam_access_key.sms_key: Refreshing state... [id=AKIA5D7PPZGXXCM7VIQ5] | |
aws_iam_access_key.topics_key: Refreshing state... [id=AKIA5D7PPZGX24GTRVMF] | |
aws_s3_bucket.uploadbucket: Refreshing state... [id=uploads.local.ahanapediatrics.com] | |
aws_s3_bucket.downloadsBucket: Refreshing state... [id=downloads.ahanapediatrics.com] | |
aws_iam_access_key.file-upload-key: Refreshing state... [id=AKIA5D7PPZGX6DYHOLPM] | |
aws_iam_access_key.auditor-key: Refreshing state... [id=AKIA5D7PPZGXXM3YLMPL] | |
auth0_resource_server.ahana_api: Refreshing state... [id=5bdc44c7bc84de5bdc2721d5] | |
auth0_email.mailtrap[0]: Refreshing state... [id=smtp] | |
auth0_email_template.verification_email: Refreshing state... [id=verify_email] | |
auth0_email_template.reset_password: Refreshing state... [id=reset_email] | |
auth0_client.health_care_user_client: Refreshing state... [id=JUGOBjeW9wrT8v7GwMHnIE3H8SLgNQN2] | |
auth0_client.test_client: Refreshing state... [id=28acPeOw8LEw2bqro7GXIzSLld3CFNdY] | |
auth0_rule.addUserDetails: Refreshing state... [id=rul_16Eh2PiCkhzjDzbn] | |
auth0_client.cli_client: Refreshing state... [id=fTzMq6UmQk1yoqpd4AV9M5OWUed3CD6p] | |
aws_ssm_parameter.CALLOUT_QUEUE_URL: Refreshing state... [id=/ahana/local/CALLOUT_QUEUE_URL] | |
aws_ssm_parameter.AUDIT_LOG_GROUP: Refreshing state... [id=/ahana/local/AUDIT_LOG_GROUP] | |
aws_cloudwatch_log_stream.audit-log: Refreshing state... [id=local-audit-stream] | |
data.aws_iam_policy_document.topics_consume: Refreshing state... | |
aws_ssm_parameter.STREAMER_QUEUE_URL: Refreshing state... [id=/ahana/local/STREAMER_QUEUE_URL] | |
aws_sqs_queue_policy.callout-policy: Refreshing state... [id=https://sqs.us-west-2.amazonaws.com/901908515247/callout-queue-local] | |
aws_sqs_queue_policy.streamer-policy: Refreshing state... [id=https://sqs.us-west-2.amazonaws.com/901908515247/streamer-queue-local] | |
aws_sns_topic_subscription.streamer-sub: Refreshing state... [id=arn:aws:sns:us-west-2:901908515247:visits_local:b45e831d-214e-4280-b978-d3edb1775cbe] | |
aws_sns_topic_subscription.callout-sub: Refreshing state... [id=arn:aws:sns:us-west-2:901908515247:visits_local:ebbd8b78-f0f3-408b-a48b-43eed8ac3d59] | |
aws_ssm_parameter.snsApptTopic: Refreshing state... [id=/ahana/local/SNS_VISITS_TOPIC] | |
data.aws_iam_policy_document.topics_publish: Refreshing state... | |
data.aws_iam_policy_document.taskRunner: Refreshing state... | |
aws_iam_access_key.topics_consumer_key: Refreshing state... [id=AKIA5D7PPZGXUOWKZTPY] | |
aws_iam_policy.email-send: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-email-send] | |
aws_iam_role.ec2-params-reader: Refreshing state... [id=local-ec2-params-reader] | |
aws_route53_record.web-local[0]: Refreshing state... [id=Z3OVW1KW359W1C_app_A] | |
aws_route53_record.auth: Refreshing state... [id=Z3OVW1KW359W1C_auth_CNAME] | |
aws_ecr_lifecycle_policy.keep-things-clean: Refreshing state... [id=ahana-pediatrics/jobs] | |
aws_route53_record.subdomain-ns[0]: Refreshing state... [id=ZEH35P0OMN6O0_local.ahanapediatrics.com._NS] | |
data.aws_iam_policy_document.rolePasser: Refreshing state... | |
aws_iam_user_policy_attachment.sms-publish-attach: Refreshing state... [id=local-sms-publisher-20180703192907386900000001] | |
aws_ssm_parameter.SES_ACCESS_KEY: Refreshing state... [id=/ahana/local/SES_ACCESS_KEY] | |
aws_ssm_parameter.SES_SECRET_KEY: Refreshing state... [id=/ahana/local/SES_SECRET_KEY] | |
aws_ssm_parameter.SMS_SECRET_KEY: Refreshing state... [id=/ahana/local/SMS_SECRET_KEY] | |
aws_ssm_parameter.SMS_ACCESS_KEY: Refreshing state... [id=/ahana/local/SMS_ACCESS_KEY] | |
aws_ssm_parameter.snsSKey: Refreshing state... [id=/ahana/local/SNS_SECRET_KEY] | |
aws_ssm_parameter.snsAKey: Refreshing state... [id=/ahana/local/SNS_ACCESS_KEY] | |
sentry_key.ahana_key: Refreshing state... [id=49cb7595218f41a5829122478287bc98] | |
aws_ssm_parameter.auditLogSecretKey: Refreshing state... [id=/ahana/local/AUDIT_LOG_SECRET_KEY] | |
aws_ssm_parameter.auditLogAccessKey: Refreshing state... [id=/ahana/local/AUDIT_LOG_ACCESS_KEY] | |
aws_ssm_parameter.FILE_UPLOAD_ACCESS_KEY: Refreshing state... [id=/ahana/local/FILE_UPLOAD_ACCESS_KEY] | |
aws_ssm_parameter.FILE_UPLOAD_SECRET_KEY: Refreshing state... [id=/ahana/local/FILE_UPLOAD_SECRET_KEY] | |
aws_ssm_parameter.AUTH0_CLIENT_SECRET: Refreshing state... [id=/ahana/local/AUTH0_CLIENT_SECRET] | |
aws_ssm_parameter.AUTH0_CLIENT_ID: Refreshing state... [id=/ahana/local/AUTH0_CLIENT_ID] | |
auth0_client_grant.test_client_grant: Refreshing state... [id=cgr_eDKFmkdNwNmjh6It] | |
aws_ssm_parameter.AUTH0_CLI_CLIENT_ID: Refreshing state... [id=/ahana/local/AUTH0_CLI_CLIENT_ID] | |
auth0_client_grant.cli_client_grant: Refreshing state... [id=cgr_XsHMrW2H8bpoo7V5] | |
aws_ssm_parameter.AUTH0_CLI_CLIENT_SECRET: Refreshing state... [id=/ahana/local/AUTH0_CLI_CLIENT_SECRET] | |
aws_ssm_parameter.AUDIT_LOG_STREAM: Refreshing state... [id=/ahana/local/AUDIT_LOG_STREAM] | |
data.aws_iam_policy_document.audit: Refreshing state... | |
aws_iam_policy.topics_consume: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-topics-consume] | |
data.aws_iam_policy_document.deployer: Refreshing state... | |
aws_s3_bucket_public_access_block.web-public-block: Refreshing state... [id=app.local.ahanapediatrics.com] | |
aws_iam_policy.topics_publish: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-topics-publish] | |
aws_iam_policy.task-run: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-task-run] | |
aws_ssm_parameter.SQS_SECRET_KEY: Refreshing state... [id=/ahana/local/SQS_SECRET_KEY] | |
aws_ssm_parameter.SQS_ACCESS_KEY: Refreshing state... [id=/ahana/local/SQS_ACCESS_KEY] | |
aws_iam_instance_profile.params-access-profile: Refreshing state... [id=local-params-access-profile] | |
aws_iam_role_policy_attachment.ec2-x-ray-attach: Refreshing state... [id=local-ec2-params-reader-20191004152915589000000001] | |
aws_iam_user_policy_attachment.email-send-attach: Refreshing state... [id=local-email-sender-20181102123626315700000001] | |
aws_iam_policy.roll-pass-policy: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-roll-pass] | |
local_file.config-file: Refreshing state... [id=2eef5382ece0ae7d70ba3890dbba6b2984a5472a] | |
aws_ssm_parameter.raven: Refreshing state... [id=/ahana/local/RAVEN_DSN] | |
data.aws_iam_policy_document.upload: Refreshing state... | |
aws_iam_policy.audit: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-audit-log-writer] | |
aws_iam_policy.deploy: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-deploy] | |
aws_iam_user_policy_attachment.topics-consume-attach: Refreshing state... [id=local-topics-consumer-20190418194519549000000001] | |
aws_iam_role_policy_attachment.ec2-read-only-policy-attachment: Refreshing state... [id=local-task-runner-role-20190623192143301200000003] | |
aws_iam_user_policy_attachment.topics-publish-attach: Refreshing state... [id=local-topics-publisher-20181102123627245800000003] | |
data.aws_iam_policy_document.params-read: Refreshing state... | |
aws_iam_role_policy_attachment.roll-pass-policy-attachment: Refreshing state... [id=ecsEventsRole-20190623192143551400000004] | |
aws_iam_policy.upload: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-file-upload] | |
aws_iam_user_policy_attachment.audit-attach: Refreshing state... [id=local-audit-log-writer-20180519002359587300000001] | |
aws_iam_user_policy_attachment.deploy-attach: Refreshing state... [id=local-deployer-20190623192142466300000001] | |
aws_iam_policy.params-read: Refreshing state... [id=arn:aws:iam::901908515247:policy/local-params-read] | |
aws_iam_user_policy_attachment.test-attach: Refreshing state... [id=local-file-upload-20180430200801261800000001] | |
aws_iam_role_policy_attachment.ec2-params-reader-attach: Refreshing state... [id=local-ec2-params-reader-20190701011922866100000001] | |
aws_iam_user_policy_attachment.params-read-attach: Refreshing state... [id=local-params-reader-20200325193410334900000001] | |
------------------------------------------------------------------------ | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
~ update in-place | |
[36m<= read (data resources) | |
Terraform will perform the following actions: | |
# data.aws_iam_policy_document.upload will be read during apply | |
# (config refers to values not yet known) | |
[36m<= data "aws_iam_policy_document" "upload" { | |
+ id = (known after apply) | |
+ json = (known after apply) | |
+ statement { | |
+ actions = [ | |
+ "s3:GetObject", | |
+ "s3:PutObject", | |
] | |
+ resources = [ | |
+ "arn:aws:s3:::uploads.local.ahanapediatrics.com/*", | |
] | |
+ sid = "1" | |
} | |
} | |
# auth0_client_grant.cli_client_grant will be updated in-place | |
~ resource "auth0_client_grant" "cli_client_grant" { | |
audience = "https://ahanapediatrics.com/api" | |
client_id = "fTzMq6UmQk1yoqpd4AV9M5OWUed3CD6p" | |
id = "cgr_XsHMrW2H8bpoo7V5" | |
~ scope = [ | |
"addendum:create", | |
"admin:access", | |
"appointment:read", | |
"appointment:update", | |
"file:download", | |
"file:upload", | |
"medicalHome:update", | |
"patient:search", | |
+ "provider:create", | |
] | |
} | |
# auth0_resource_server.ahana_api will be updated in-place | |
~ resource "auth0_resource_server" "ahana_api" { | |
allow_offline_access = false | |
enforce_policies = false | |
id = "5bdc44c7bc84de5bdc2721d5" | |
identifier = "https://ahanapediatrics.com/api" | |
name = "Ahana API" | |
options = {} | |
signing_alg = "RS256" | |
skip_consent_for_verifiable_first_party_clients = true | |
token_lifetime = 300 | |
token_lifetime_for_web = 300 | |
scopes { | |
description = "Access Admin functions" | |
value = "admin:access" | |
} | |
+ scopes { | |
+ description = "Create a Provider account" | |
+ value = "provider:create" | |
} | |
scopes { | |
description = "Download files" | |
value = "file:download" | |
} | |
scopes { | |
description = "Modify Medical Home information" | |
value = "medicalHome:update" | |
} | |
scopes { | |
description = "Read Appointments" | |
value = "appointment:read" | |
} | |
scopes { | |
description = "Search Patients" | |
value = "patient:search" | |
} | |
scopes { | |
description = "Update Appointments" | |
value = "appointment:update" | |
} | |
scopes { | |
description = "Upload files" | |
value = "addendum:create" | |
} | |
scopes { | |
description = "Upload files" | |
value = "file:upload" | |
} | |
} | |
# auth0_role.support will be created | |
+ resource "auth0_role" "support" { | |
+ description = "Ahana Support Role" | |
+ id = (known after apply) | |
+ name = "Support - (Managed by Terraform)" | |
+ role_id = (known after apply) | |
+ permissions { | |
+ name = "provider:create" | |
+ resource_server_identifier = "https://ahanapediatrics.com/api" | |
} | |
} | |
# aws_iam_policy.upload will be updated in-place | |
~ resource "aws_iam_policy" "upload" { | |
arn = "arn:aws:iam::901908515247:policy/local-file-upload" | |
id = "arn:aws:iam::901908515247:policy/local-file-upload" | |
name = "local-file-upload" | |
path = "/" | |
~ policy = jsonencode( | |
{ | |
- Statement = [ | |
- { | |
- Action = [ | |
- "s3:PutObject", | |
- "s3:GetObject", | |
] | |
- Effect = "Allow" | |
- Resource = "arn:aws:s3:::uploads.local.ahanapediatrics.com/*" | |
- Sid = "1" | |
}, | |
] | |
- Version = "2012-10-17" | |
} | |
) -> (known after apply) | |
} | |
# aws_s3_bucket.access-logging will be created | |
+ resource "aws_s3_bucket" "access-logging" { | |
+ acceleration_status = (known after apply) | |
+ acl = "log-delivery-write" | |
+ arn = (known after apply) | |
+ bucket = "ahana-access-logging-local" | |
+ bucket_domain_name = (known after apply) | |
+ bucket_regional_domain_name = (known after apply) | |
+ force_destroy = false | |
+ hosted_zone_id = (known after apply) | |
+ id = (known after apply) | |
+ region = (known after apply) | |
+ request_payer = (known after apply) | |
+ website_domain = (known after apply) | |
+ website_endpoint = (known after apply) | |
+ versioning { | |
+ enabled = (known after apply) | |
+ mfa_delete = (known after apply) | |
} | |
} | |
# aws_s3_bucket.downloadsBucket will be updated in-place | |
~ resource "aws_s3_bucket" "downloadsBucket" { | |
acl = "public-read" | |
arn = "arn:aws:s3:::downloads.ahanapediatrics.com" | |
bucket = "downloads.ahanapediatrics.com" | |
bucket_domain_name = "downloads.ahanapediatrics.com.s3.amazonaws.com" | |
bucket_regional_domain_name = "downloads.ahanapediatrics.com.s3.us-west-2.amazonaws.com" | |
force_destroy = false | |
hosted_zone_id = "Z3BJ6K6RIION7M" | |
id = "downloads.ahanapediatrics.com" | |
region = "us-west-2" | |
request_payer = "BucketOwner" | |
tags = {} | |
website_domain = "s3-website-us-west-2.amazonaws.com" | |
website_endpoint = "downloads.ahanapediatrics.com.s3-website-us-west-2.amazonaws.com" | |
cors_rule { | |
allowed_headers = [ | |
"*", | |
] | |
allowed_methods = [ | |
"GET", | |
] | |
allowed_origins = [ | |
"http://downloads.ahanapediatrics.com.s3-website-us-west-2.amazonaws.com", | |
] | |
expose_headers = [] | |
max_age_seconds = 0 | |
} | |
- logging { | |
- target_bucket = "ahana-access-logging" [90m-> [90mnull | |
- target_prefix = "downloads/" [90m-> [90mnull | |
} | |
+ logging { | |
+ target_bucket = (known after apply) | |
+ target_prefix = "downloads/" | |
} | |
versioning { | |
enabled = false | |
mfa_delete = false | |
} | |
website { | |
index_document = "index.html" | |
} | |
} | |
# aws_s3_bucket.uploadbucket will be updated in-place | |
~ resource "aws_s3_bucket" "uploadbucket" { | |
acl = "private" | |
arn = "arn:aws:s3:::uploads.local.ahanapediatrics.com" | |
bucket = "uploads.local.ahanapediatrics.com" | |
bucket_domain_name = "uploads.local.ahanapediatrics.com.s3.amazonaws.com" | |
bucket_regional_domain_name = "uploads.local.ahanapediatrics.com.s3.us-west-2.amazonaws.com" | |
force_destroy = false | |
hosted_zone_id = "Z3BJ6K6RIION7M" | |
id = "uploads.local.ahanapediatrics.com" | |
region = "us-west-2" | |
request_payer = "BucketOwner" | |
tags = {} | |
cors_rule { | |
allowed_headers = [ | |
"*", | |
] | |
allowed_methods = [ | |
"PUT", | |
] | |
allowed_origins = [ | |
"https://app.local.ahanapediatrics.com:8443", | |
"https://local.ahanapediatrics.com:6060", | |
] | |
expose_headers = [] | |
max_age_seconds = 0 | |
} | |
cors_rule { | |
allowed_headers = [ | |
"*", | |
] | |
allowed_methods = [ | |
"GET", | |
] | |
allowed_origins = [ | |
"*", | |
] | |
expose_headers = [] | |
max_age_seconds = 0 | |
} | |
+ logging { | |
+ target_bucket = (known after apply) | |
+ target_prefix = "uploads/local" | |
} | |
versioning { | |
enabled = false | |
mfa_delete = false | |
} | |
} | |
# local_file.config-file will be created | |
+ resource "local_file" "config-file" { | |
+ content = jsonencode( | |
{ | |
+ API_URL = "https://api.local.ahanapediatrics.com:8444/api" | |
+ AUTH0_CLIENT_ID = "JUGOBjeW9wrT8v7GwMHnIE3H8SLgNQN2" | |
+ AUTH0_DOMAIN = "auth.local.ahanapediatrics.com" | |
+ EMAILER_URL = "https://api.local.ahanapediatrics.com:8444/emails" | |
+ NODE_ENV = "development" | |
+ OPTIMIZELY_KEY = "CPmhun6MMjuxNpC3RMjRPK" | |
+ RAVEN_DSN = "https://49cb7595218f41a5829122478287bc98@o122009.ingest.sentry.io/256175" | |
+ STREAMER_URL = "https://events.local.ahanapediatrics.com:8081" | |
+ STRIPE_PUBLIC_KEY = "pk_test_O5WvndUjO1UxhRMctHQj7rZI" | |
+ UPLOAD_URL = "http://uploads.local.ahanapediatrics.com.s3.amazonaws.com" | |
} | |
) | |
+ directory_permission = "0777" | |
+ file_permission = "0777" | |
+ filename = "./config/local.json" | |
+ id = (known after apply) | |
} | |
Plan: 3 to add, 5 to change, 0 to destroy. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment