{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/3370","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/3370/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3370/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/3370/events","html_url":"https://github.com/hashicorp/terraform/issues/3370","id":109185700,"number":3370,"title":"feature req: allow references to non-computed attributes","user":{"login":"br0ch0n","id":3664748,"avatar_url":"https://avatars.githubusercontent.com/u/3664748?v=3","gravatar_id":"","url":"https://api.github.com/users/br0ch0n","html_url":"https://github.com/br0ch0n","followers_url":"https://api.github.com/users/br0ch0n/followers","following_url":"https://api.github.com/users/br0ch0n/following{/other_user}","gists_url":"https://api.github.com/users/br0ch0n/gists{/gist_id}","starred_url":"https://api.github.com/users/br0ch0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br0ch0n/subscriptions","organizations_url":"https://api.github.com/users/br0ch0n/orgs","repos_url":"https://api.github.com/users/br0ch0n/repos","events_url":"https://api.github.com/users/br0ch0n/events{/privacy}","received_events_url":"https://api.github.com/users/br0ch0n/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-30T21:44:27Z","updated_at":"2015-12-02T18:50:17Z","closed_at":"2015-12-02T18:50:17Z","body":"Use case:\r\nsimilar to the various tickets that would like to do separate EIP associations, I'd like to be able to reference my private_ip earlier.  For example, I'd like to be able to create a route53 record with the private ip of my aws_instance BEFORE I create the aws_instance.  I however cannot create such a dependency without creating a cycle.  I'm statically assigning the private_ip to the aws_instance so the data is available ahead of time. Perhaps allow direct access to another resources arguments vs just their attributes?  I can of course use a var to store the value and reference it however I like, but I was thinking that it might be nice to be able to skip a step."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/161395877","html_url":"https://github.com/hashicorp/terraform/issues/3370#issuecomment-161395877","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3370","id":161395877,"user":{"login":"phinze","id":37534,"avatar_url":"https://avatars.githubusercontent.com/u/37534?v=3","gravatar_id":"","url":"https://api.github.com/users/phinze","html_url":"https://github.com/phinze","followers_url":"https://api.github.com/users/phinze/followers","following_url":"https://api.github.com/users/phinze/following{/other_user}","gists_url":"https://api.github.com/users/phinze/gists{/gist_id}","starred_url":"https://api.github.com/users/phinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phinze/subscriptions","organizations_url":"https://api.github.com/users/phinze/orgs","repos_url":"https://api.github.com/users/phinze/repos","events_url":"https://api.github.com/users/phinze/events{/privacy}","received_events_url":"https://api.github.com/users/phinze/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T18:50:17Z","updated_at":"2015-12-02T18:50:17Z","body":"Revisiting this, I believe that it's a better solution to just refactor to use a variable. That's a more correct expression of the reference.\r\n\r\nFeel free to follow up if you disagree and we can continue to discuss. :+1: "}}