{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/128","labels_url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/128/comments","events_url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/128/events","html_url":"https://github.com/chef/chef-provisioning-aws/issues/128","id":60714594,"number":128,"title":"Cannot refer to a security group by security_group_id","user":{"login":"christinedraper","id":6227274,"avatar_url":"https://avatars.githubusercontent.com/u/6227274?v=3","gravatar_id":"","url":"https://api.github.com/users/christinedraper","html_url":"https://github.com/christinedraper","followers_url":"https://api.github.com/users/christinedraper/followers","following_url":"https://api.github.com/users/christinedraper/following{/other_user}","gists_url":"https://api.github.com/users/christinedraper/gists{/gist_id}","starred_url":"https://api.github.com/users/christinedraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christinedraper/subscriptions","organizations_url":"https://api.github.com/users/christinedraper/orgs","repos_url":"https://api.github.com/users/christinedraper/repos","events_url":"https://api.github.com/users/christinedraper/events{/privacy}","received_events_url":"https://api.github.com/users/christinedraper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T19:22:20Z","updated_at":"2015-03-17T11:08:52Z","closed_at":null,"body":"Testing with latest master (0.4)\r\n\r\nUse case is to set up a security group where anything within the security group is allowed to talk to anything else in the same security group. I used to refer to security_group_id, but that is now nil at the time that apply_rules is called (dont know if it gets set later).  Not a huge problem because changing to use logical name works ok, just may break some folks.\r\n\r\n```\r\naws_security_group \"provisioning-vpc-security-group\" do\r\n    inbound_rules lazy{ [\r\n    {:ports => 22, :protocol => :tcp, :sources => [\"0.0.0.0/0\" ] },\r\n    {:ports => 3001, :protocol => :tcp, :sources => [\"0.0.0.0/0\" ] },\r\n     {:ports => 1024..65535, :protocol => :tcp, :sources => [ { :group_id => security_group_id } ] } \r\n     # {:ports => 1024..65535, :protocol => :tcp, :sources => [ \"provisioning-vpc-security-group\" ] } \r\n\r\n    ]}\r\n    outbound_rules [\r\n    { :sources => [\"0.0.0.0/0\" ] }\r\n\r\n    ]\r\n    vpc \"provisioning-vpc\"\r\n  end\r\n```"},"comment":{"url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/comments/82284286","html_url":"https://github.com/chef/chef-provisioning-aws/issues/128#issuecomment-82284286","issue_url":"https://api.github.com/repos/chef/chef-provisioning-aws/issues/128","id":82284286,"user":{"login":"zeroXten","id":199111,"avatar_url":"https://avatars.githubusercontent.com/u/199111?v=3","gravatar_id":"","url":"https://api.github.com/users/zeroXten","html_url":"https://github.com/zeroXten","followers_url":"https://api.github.com/users/zeroXten/followers","following_url":"https://api.github.com/users/zeroXten/following{/other_user}","gists_url":"https://api.github.com/users/zeroXten/gists{/gist_id}","starred_url":"https://api.github.com/users/zeroXten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeroXten/subscriptions","organizations_url":"https://api.github.com/users/zeroXten/orgs","repos_url":"https://api.github.com/users/zeroXten/repos","events_url":"https://api.github.com/users/zeroXten/events{/privacy}","received_events_url":"https://api.github.com/users/zeroXten/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T11:08:52Z","updated_at":"2015-03-17T11:08:52Z","body":"I get the following error when trying to use the  logical name:\r\n\r\n    AWS::EC2::Errors::InvalidParameterValue\r\n    ---------------------------------------\r\n    invalid CIDR subnet specification: load-balancers\r\n\r\nFor aws security group \"load-balancers\":\r\n\r\n    aws_security_group(\"load-balancers\") do\r\n      action :create\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      id \"load-balancers\"\r\n      security_group_id \"sg-361d8052\"\r\n      driver \"aws\"\r\n      declared_type :aws_security_group\r\n      cookbook_name \"@recipe_files\"\r\n      .....\r\n\r\nOne of the rules looks like:\r\n\r\n    {:ports=>\"9080\", :protocol=>:tcp, :sources=>[\"load-balancers\"]}"}}