We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start with:
locals { resource_group = data.ibm_resource_group.group.id } data "ibm_resource_group" "group" { name = var.resource_group_name } resource "ibm_schematics_workspace" "schematics_workspace" { name = var.basename description = "testing schematics" location = "us-east" resource_group = local.resource_group template_type = "terraform_v1.0.3" #2 template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" }
apply the above, then uncomment and apply again. But, first time it works ok
Below is the entire experience:
schematics_tf $ cat main.tf locals { resource_group = data.ibm_resource_group.group.id } data "ibm_resource_group" "group" { name = var.resource_group_name } resource "ibm_schematics_workspace" "schematics_workspace" { name = var.basename description = "testing schematics" location = "us-east" resource_group = local.resource_group template_type = "terraform_v1.0.3" #2 template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" } #template_type = "terraform_v0.13.6" # template_type = "terraform_v1.0" # template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/workspace" schematics_tf $ tfa Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # ibm_schematics_workspace.schematics_workspace will be created + resource "ibm_schematics_workspace" "schematics_workspace" { + created_at = (known after apply) + created_by = (known after apply) + crn = (known after apply) + description = "testing schematics" + id = (known after apply) + last_health_check_at = (known after apply) + location = "us-east" + locked = (known after apply) + locked_by = (known after apply) + locked_time = (known after apply) + name = "feedb00" + resource_group = "b6503f25836d49029966ab5be7fe50b5" + runtime_data = (known after apply) + status = (known after apply) + template_git_has_uploadedgitrepotar = (known after apply) + template_type = "terraform_v1.0.3" + template_values_metadata = (known after apply) + updated_at = (known after apply) + updated_by = (known after apply) } Plan: 1 to add, 0 to change, 0 to destroy. ibm_schematics_workspace.schematics_workspace: Creating... ibm_schematics_workspace.schematics_workspace: Creation complete after 3s [id=us-east.workspace.feedb00.e1d2278e] Apply complete! Resources: 1 added, 0 changed, 0 destroyed. schematics_tf $ cat main.tf locals { resource_group = data.ibm_resource_group.group.id } data "ibm_resource_group" "group" { name = var.resource_group_name } resource "ibm_schematics_workspace" "schematics_workspace" { name = var.basename description = "testing schematics" location = "us-east" resource_group = local.resource_group template_type = "terraform_v1.0.3" template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" } #template_type = "terraform_v0.13.6" # template_type = "terraform_v1.0" # template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/workspace" schematics_tf $ tfa ibm_schematics_workspace.schematics_workspace: Refreshing state... [id=us-east.workspace.feedb00.e1d2278e] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # ibm_schematics_workspace.schematics_workspace has been changed ~ resource "ibm_schematics_workspace" "schematics_workspace" { id = "us-east.workspace.feedb00.e1d2278e" name = "feedb00" + tags = [] + template_env_settings = [] # (15 unchanged attributes hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # ibm_schematics_workspace.schematics_workspace will be updated in-place ~ resource "ibm_schematics_workspace" "schematics_workspace" { id = "us-east.workspace.feedb00.e1d2278e" name = "feedb00" ~ resource_group = "default" -> "b6503f25836d49029966ab5be7fe50b5" tags = [] + template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" # (15 unchanged attributes hidden) } Plan: 0 to add, 1 to change, 0 to destroy. ibm_schematics_workspace.schematics_workspace: Modifying... [id=us-east.workspace.feedb00.e1d2278e] ╷ │ Error: UpdateWorkspaceWithContext failed Terraform HCL parsing error(s) detected. File: vpc.tf: 'Terraform parse error: At 2:10: Unknown token: 2:10 IDENT var.image_name'. Make sure the terraform configuration syntax is valid. │ { │ "StatusCode": 404, │ "Headers": { │ "Cache-Control": [ │ "no-store, no-cache='Set-Cookie, Set-Cookie2', must-revalidate, proxy-revalidate, post-check=0, pre-check=0" │ ], │ "Cf-Cache-Status": [ │ "DYNAMIC" │ ], │ "Cf-Ray": [ │ "6a90fce498253098-SEA" │ ], │ "Content-Security-Policy": [ │ "default-src 'self'; frame-ancestors 'self';" │ ], │ "Content-Type": [ │ "application/json; charset=utf-8" │ ], │ "Date": [ │ "Thu, 04 Nov 2021 21:38:15 GMT" │ ], │ "Expect-Ct": [ │ "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" │ ], │ "Expires": [ │ "0" │ ], │ "Ibm-Schematics-Requestid": [ │ "ecaf0a6c-1bb5-482b-85c3-6d39521767e9" │ ], │ "Pragma": [ │ "no-cache" │ ], │ "Server": [ │ "cloudflare" │ ], │ "Strict-Transport-Security": [ │ "max-age=15552000; includeSubDomains" │ ], │ "X-Content-Type-Options": [ │ "nosniff" │ ], │ "X-Xss-Protection": [ │ "1; mode=block" │ ] │ }, │ "Result": { │ "message": "Terraform HCL parsing error(s) detected. File: vpc.tf: 'Terraform parse error: At 2:10: Unknown token: 2:10 IDENT var.image_name'. Make sure the terraform configuration syntax is valid.", │ "messageid": "M1026", │ "requestid": "ecaf0a6c-1bb5-482b-85c3-6d39521767e9", │ "statuscode": 404, │ "timestamp": "2021-11-04T21:38:14.433215642Z" │ }, │ "RawResult": null │ } │ │ │ with ibm_schematics_workspace.schematics_workspace, │ on main.tf line 9, in resource "ibm_schematics_workspace" "schematics_workspace": │ 9: resource "ibm_schematics_workspace" "schematics_workspace" { │ ╵ schematics_tf $ tfd ibm_schematics_workspace.schematics_workspace: Refreshing state... [id=us-east.workspace.feedb00.e1d2278e] Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # ibm_schematics_workspace.schematics_workspace has been changed ~ resource "ibm_schematics_workspace" "schematics_workspace" { id = "us-east.workspace.feedb00.e1d2278e" name = "feedb00" ~ resource_group = "b6503f25836d49029966ab5be7fe50b5" -> "default" tags = [] - template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" -> null # (15 unchanged attributes hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # ibm_schematics_workspace.schematics_workspace will be destroyed - resource "ibm_schematics_workspace" "schematics_workspace" { - created_at = "2021-11-04T21:37:44.501Z" -> null - created_by = "pquiring@us.ibm.com" -> null - crn = "crn:v1:bluemix:public:schematics:us-south:a/713c783d9a507a53135fe6793c37cc74:f1eb1305-6add-4f84-baa2-17001a935b44:workspace:us-east.workspace.feedb00.e1d2278e" -> null - description = "testing schematics" -> null - frozen = false -> null - id = "us-east.workspace.feedb00.e1d2278e" -> null - last_health_check_at = "0001-01-01T00:00:00.000Z" -> null - location = "us-east" -> null - locked = false -> null - name = "feedb00" -> null - resource_group = "default" -> null - runtime_data = [ - { - engine_cmd = "" - engine_name = "terraform" - engine_version = "v1.0.3" - id = "e7408f45-2d03-45" - log_store_url = "https://schematics.cloud.ibm.com/v1/workspaces/us-east.workspace.feedb00.e1d2278e/runtime_data/e7408f45-2d03-45/log_store" - output_values = [] - resources = [] - state_store_url = "https://schematics.cloud.ibm.com/v1/workspaces/us-east.workspace.feedb00.e1d2278e/runtime_data/e7408f45-2d03-45/state_store" }, ] -> null - status = "DRAFT" -> null - tags = [] -> null - template_env_settings = [] -> null - template_git_has_uploadedgitrepotar = false -> null - template_type = "terraform_v1.0.3" -> null - template_values_metadata = [] -> null - updated_at = "0001-01-01T00:00:00.000Z" -> null } Plan: 0 to add, 0 to change, 1 to destroy. ibm_schematics_workspace.schematics_workspace: Destroying... [id=us-east.workspace.feedb00.e1d2278e] ibm_schematics_workspace.schematics_workspace: Destruction complete after 2s Destroy complete! Resources: 1 destroyed. schematics_tf $ tfa Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # ibm_schematics_workspace.schematics_workspace will be created + resource "ibm_schematics_workspace" "schematics_workspace" { + created_at = (known after apply) + created_by = (known after apply) + crn = (known after apply) + description = "testing schematics" + id = (known after apply) + last_health_check_at = (known after apply) + location = "us-east" + locked = (known after apply) + locked_by = (known after apply) + locked_time = (known after apply) + name = "feedb00" + resource_group = "b6503f25836d49029966ab5be7fe50b5" + runtime_data = (known after apply) + status = (known after apply) + template_git_has_uploadedgitrepotar = (known after apply) + template_git_url = "https://github.ibm.com/pquiring/feedback-schematics-actions/tree/master/workspace" + template_type = "terraform_v1.0.3" + template_values_metadata = (known after apply) + updated_at = (known after apply) + updated_by = (known after apply) } Plan: 1 to add, 0 to change, 0 to destroy. ibm_schematics_workspace.schematics_workspace: Creating... ibm_schematics_workspace.schematics_workspace: Creation complete after 5s [id=us-east.workspace.feedb00.bebb73f8] Apply complete! Resources: 1 added, 0 changed, 0 destroyed. schematics_tf $
The text was updated successfully, but these errors were encountered:
Fix for issue IBM-Cloud#3295 - Update template_inputs
2e6d28a
8db69d5
9484399
Update schematics terraform resources and datasources based on latest…
0807faa
… Schematics OpenAPI Spec and SDK (#2901) * Update schematics terraform resources and datasources based on latest Schematics OpenAPI Spec and SDK * Add schematics inventory and resource query terraform data sources and resources * Update schematics docs * Update detect secrets false positive files * Fix for issue #3296 Update template_git_branch type * Fix for issue #3295 - Update template_inputs * Update attribute types - Remove optional type for computed fields Co-authored-by: Venkatesh Murugan <n.venkatesh@in.ibm.com>
Fix is available in provider version >=1.36.0 Closing this issue.
Thanks.
Sorry, something went wrong.
No branches or pull requests
Start with:
apply the above, then uncomment and apply again. But, first time it works ok
Below is the entire experience:
The text was updated successfully, but these errors were encountered: