| { |
| "version": 4, |
| "terraform_version": "0.15.0", |
| "serial": 8, |
| "lineage": "00bfda35-ad61-ec8d-c013-14b0320bc416", |
| "resources": [ |
| { |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "root", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "id": "root", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-root", |
| "role": "roles/viewer-root" |
| } |
| } |
| ] |
| }, |
| { |
| "module": "module.nest", |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "nest", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "ami": "nested", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-nest", |
| "role": "roles/viewer-nest" |
| } |
| } |
| ] |
| }, |
| { |
| "module": "module.nest.module.subnest", |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "subnest", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "id": "subnested", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-subnest", |
| "role": "roles/viewer-subnest" |
| } |
| } |
| ] |
| }, |
| { |
| "module": "module.nonexist.module.child", |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "child", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "id": "child", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-child", |
| "role": "roles/viewer-child" |
| } |
| } |
| ] |
| }, |
| { |
| "module": "module.count[0]", |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "count", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "id": "zero", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-count-0", |
| "role": "roles/viewer-count-0" |
| } |
| } |
| ] |
| }, |
| { |
| "module": "module.count[1]", |
| "mode": "managed", |
| "type": "test_instance", |
| "name": "count", |
| "provider": "provider[\"registry.terraform.io/hashicorp/test\"]", |
| "instances": [ |
| { |
| "schema_version": 0, |
| "attributes": { |
| "id": "one", |
| "triggers": null |
| }, |
| "identity_schema_version": 0, |
| "identity": { |
| "project": "my-project-count-1", |
| "role": "roles/viewer-count-1" |
| } |
| } |
| ] |
| } |
| ] |
| } |