{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2373","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2373/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2373/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2373/events","html_url":"https://github.com/hashicorp/terraform/issues/2373","id":88802154,"number":2373,"title":"Prefer Atlas variables over local variables","user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/atlas","name":"atlas","color":"000000"}],"state":"closed","locked":false,"assignee":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-06-16T18:22:44Z","updated_at":"2015-06-29T21:00:43Z","closed_at":"2015-06-29T21:00:43Z","body":"This issue comes from our discussion today. The UX for `terraform push` with respect to variables should be the following:\r\n\r\n- On the first `terraform push`, all local variables are sent and stored in Atlas\r\n- On subsequent `terraform push`, only local variables that have not yet been stored in Atlas are sent\r\n  - A warning should be displayed telling the user that only new variables are added\r\n- A new CLI option/flag should be added that allows the user to update 1+ remote terraform variables via the command line as part of `terraform push`, something like:\r\n\r\n    ```shell\r\n    $ terraform push -var=\"num-nodes=5\"\r\n    ```\r\n\r\n  This will always overwrite (or create) the remote terraform variable in Atlas\r\n\r\n/cc @pearkes @mitchellh "}}