{"action":"created","issue":{"url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/49","labels_url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/49/comments","events_url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/49/events","html_url":"https://github.com/sparkleformation/sparkle_formation/issues/49","id":69369572,"number":49,"title":"Issue when using AWS SDK for Ruby","user":{"login":"techshell","id":494939,"avatar_url":"https://avatars.githubusercontent.com/u/494939?v=3","gravatar_id":"","url":"https://api.github.com/users/techshell","html_url":"https://github.com/techshell","followers_url":"https://api.github.com/users/techshell/followers","following_url":"https://api.github.com/users/techshell/following{/other_user}","gists_url":"https://api.github.com/users/techshell/gists{/gist_id}","starred_url":"https://api.github.com/users/techshell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techshell/subscriptions","organizations_url":"https://api.github.com/users/techshell/orgs","repos_url":"https://api.github.com/users/techshell/repos","events_url":"https://api.github.com/users/techshell/events{/privacy}","received_events_url":"https://api.github.com/users/techshell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-19T01:40:10Z","updated_at":"2015-08-31T19:23:02Z","closed_at":"2015-08-31T19:23:02Z","body":"When trying to get a list of AWS availability zones within a region to pre-populate some parameters in my sfn template, I get an `uninitialized constant SparkleFormation::Aws::EC2 (NameError)` error when I use the AWS SDK. When debugging you see something along the lines of:\r\n\r\n```\r\n.rvm/gems/ruby-2.1.2@sfn-templates/gems/attribute_struct-0.2.8/lib/attribute_struct/monkey_camels.rb:39: warning: instance variable @__not_camel not initialized\r\n```\r\nThe sfn template looks something like this:\r\n\r\n```ruby\r\nrequire 'aws-sdk'\r\n\r\nec2 = Aws::EC2::Client.new\r\nazs = ec2.describe_availability_zones.availability_zones.map(&:zone_name)\r\n\r\nSparkleFormation.new(:create_vpc_with_subnets).load(:base, :vpc).overrides do\r\n#<snip>\r\n```\r\n\r\nNote, if I use Fog ... everything is fine, despite it looking very similar and with Camel Case  `ec2 = Fog::Compute.new(params)`\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/comments/136474256","html_url":"https://github.com/sparkleformation/sparkle_formation/issues/49#issuecomment-136474256","issue_url":"https://api.github.com/repos/sparkleformation/sparkle_formation/issues/49","id":136474256,"user":{"login":"chrisroberts","id":266674,"avatar_url":"https://avatars.githubusercontent.com/u/266674?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisroberts","html_url":"https://github.com/chrisroberts","followers_url":"https://api.github.com/users/chrisroberts/followers","following_url":"https://api.github.com/users/chrisroberts/following{/other_user}","gists_url":"https://api.github.com/users/chrisroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisroberts/subscriptions","organizations_url":"https://api.github.com/users/chrisroberts/orgs","repos_url":"https://api.github.com/users/chrisroberts/repos","events_url":"https://api.github.com/users/chrisroberts/events{/privacy}","received_events_url":"https://api.github.com/users/chrisroberts/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T19:23:02Z","updated_at":"2015-08-31T19:23:02Z","body":"This looks resolved. Please open a new issue if required."}}