{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1336","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1336/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1336/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1336/events","html_url":"https://github.com/hashicorp/terraform/issues/1336","id":65242733,"number":1336,"title":"Unable to pass mapping to module","user":{"login":"jamestoyer","id":380725,"avatar_url":"https://avatars.githubusercontent.com/u/380725?v=3","gravatar_id":"","url":"https://api.github.com/users/jamestoyer","html_url":"https://github.com/jamestoyer","followers_url":"https://api.github.com/users/jamestoyer/followers","following_url":"https://api.github.com/users/jamestoyer/following{/other_user}","gists_url":"https://api.github.com/users/jamestoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jamestoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamestoyer/subscriptions","organizations_url":"https://api.github.com/users/jamestoyer/orgs","repos_url":"https://api.github.com/users/jamestoyer/repos","events_url":"https://api.github.com/users/jamestoyer/events{/privacy}","received_events_url":"https://api.github.com/users/jamestoyer/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/enhancement","name":"enhancement","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-03-30T15:50:51Z","updated_at":"2016-03-10T18:40:32Z","closed_at":null,"body":"I'm working with AWS VPCs and I created a module for each region to set up a VPC. In the variables to the module I define a mapping of subnet addresses to availability zones, like so\r\n\r\n```\r\nvariable \"subnet_addresses\" {\r\n  default {\r\n    a = \"10.0.0.0/20\"\r\n    b = \"10.0.16.0/20\"\r\n    d = \"10.0.48.0/20\"\r\n    e = \"10.0.64.0/20\"\r\n  }\r\n}\r\n```\r\n\r\nI then go ahead and reference this mapping, no problem, to set up the VPC. However, if I try to override this mapping in a file referencing this, I get an error, saying a value in the mapping is not set. Here is an example (a full example is on this [gist](https://gist.github.com/jamestoyer/64d4984e409bb2beea22))\r\n\r\n```\r\nvariable \"vpc_subnet_addresses\" {\r\n  default = {\r\n    a = \"10.255.0.0/20\"\r\n    b = \"10.255.16.0/20\"\r\n    d = \"10.255.48.0/20\"\r\n    e = \"10.255.64.0/20\"\r\n  }\r\n}\r\n\r\nmodule \"new_vpc\" {\r\n  source = \"my_vpc_module\"\r\n\r\n  subnet_addresses = \"${var.vpc_subnet_addresses}\"\r\n}\r\n``` \r\n\r\nThe error I get is \r\n\r\n```\r\nError running plan: lookup: lookup in 'vpc_subnet_addresses' failed to find 'e' in:\r\n\r\n${lookup(var.subnet_addresses, \"e\")}\r\n```\r\n\r\nMaybe I'm missing something, I'm just not sure what"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/194995555","html_url":"https://github.com/hashicorp/terraform/issues/1336#issuecomment-194995555","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1336","id":194995555,"user":{"login":"jzohrab","id":1637133,"avatar_url":"https://avatars.githubusercontent.com/u/1637133?v=3","gravatar_id":"","url":"https://api.github.com/users/jzohrab","html_url":"https://github.com/jzohrab","followers_url":"https://api.github.com/users/jzohrab/followers","following_url":"https://api.github.com/users/jzohrab/following{/other_user}","gists_url":"https://api.github.com/users/jzohrab/gists{/gist_id}","starred_url":"https://api.github.com/users/jzohrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzohrab/subscriptions","organizations_url":"https://api.github.com/users/jzohrab/orgs","repos_url":"https://api.github.com/users/jzohrab/repos","events_url":"https://api.github.com/users/jzohrab/events{/privacy}","received_events_url":"https://api.github.com/users/jzohrab/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T18:40:32Z","updated_at":"2016-03-10T18:40:32Z","body":"+1.  We're currently symlinking a lot to get around this."}}