{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/9999","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/9999/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/9999/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/9999/events","html_url":"https://github.com/hashicorp/terraform/issues/9999","id":188288163,"number":9999,"title":"google_compute_instance: google_compute_instance.junk: Use metadata_startup_script instead of a startup-script key in \"metadata\"","user":{"login":"mikemcrill","id":11181019,"avatar_url":"https://avatars.githubusercontent.com/u/11181019?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemcrill","html_url":"https://github.com/mikemcrill","followers_url":"https://api.github.com/users/mikemcrill/followers","following_url":"https://api.github.com/users/mikemcrill/following{/other_user}","gists_url":"https://api.github.com/users/mikemcrill/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemcrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemcrill/subscriptions","organizations_url":"https://api.github.com/users/mikemcrill/orgs","repos_url":"https://api.github.com/users/mikemcrill/repos","events_url":"https://api.github.com/users/mikemcrill/events{/privacy}","received_events_url":"https://api.github.com/users/mikemcrill/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":135750563,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/google-cloud","name":"provider/google-cloud","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-09T16:20:56Z","updated_at":"2016-12-06T20:30:45Z","closed_at":"2016-12-06T20:30:45Z","body":"### Terraform Version\r\n`Terraform v0.7.9`\r\n\r\n### Affected Resource(s)\r\nPlease list the resources as a list, for example:\r\n- google_compute_instance\r\n\r\nIf this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"google_compute_instance\" \"junk\" {\r\n  name           = \"inf-junk\"\r\n  machine_type   = \"n1-standard-4\"\r\n  can_ip_forward = false\r\n  zone           = \"us-central1-b\"\r\n\r\n  tags = [\"server\"]\r\n\r\n  disk {\r\n    image = \"centos-7\"\r\n  }\r\n\r\n  network_interface {\r\n    subnetwork = \"us-central1\"\r\n    access_config {\r\n      // Ephemeral IP\r\n    }\r\n  }\r\n\r\n  metadata {\r\n    startup-script = \"${data.template_file.startup-script.rendered}\"\r\n  }\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nThis should work per the docs so we don't have to recreate instances when we change the startup script:\r\nmetadata_startup_script - (Optional) An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the **startup-script metadata key** on the created instance and thus the two mechanisms are not allowed to be used simultaneously.\r\n\r\n### Actual Behavior\r\nForces you to use `metadata_startup_script` which forces a rebuild of the instance.\r\n\r\n### References\r\nhttps://github.com/hashicorp/terraform/blob/master/builtin/providers/google/resource_compute_instance.go#L1005\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/265263632","html_url":"https://github.com/hashicorp/terraform/issues/9999#issuecomment-265263632","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/9999","id":265263632,"user":{"login":"paddyforan","id":59249,"avatar_url":"https://avatars.githubusercontent.com/u/59249?v=3","gravatar_id":"","url":"https://api.github.com/users/paddyforan","html_url":"https://github.com/paddyforan","followers_url":"https://api.github.com/users/paddyforan/followers","following_url":"https://api.github.com/users/paddyforan/following{/other_user}","gists_url":"https://api.github.com/users/paddyforan/gists{/gist_id}","starred_url":"https://api.github.com/users/paddyforan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paddyforan/subscriptions","organizations_url":"https://api.github.com/users/paddyforan/orgs","repos_url":"https://api.github.com/users/paddyforan/repos","events_url":"https://api.github.com/users/paddyforan/events{/privacy}","received_events_url":"https://api.github.com/users/paddyforan/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T20:30:45Z","updated_at":"2016-12-06T20:30:45Z","body":"This should be addressed by #10537. :)"}}
{"actor":{"display_login":"paddyforan"}}