{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1192","repository_url":"https://api.github.com/repos/aws/aws-sdk-ruby","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1192/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1192/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1192","id":156304524,"number":1192,"title":"Lambda access error when updating VPC Config","user":{"login":"pchaganti","id":6500,"avatar_url":"https://avatars.githubusercontent.com/u/6500?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaganti","html_url":"https://github.com/pchaganti","followers_url":"https://api.github.com/users/pchaganti/followers","following_url":"https://api.github.com/users/pchaganti/following{/other_user}","gists_url":"https://api.github.com/users/pchaganti/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaganti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaganti/subscriptions","organizations_url":"https://api.github.com/users/pchaganti/orgs","repos_url":"https://api.github.com/users/pchaganti/repos","events_url":"https://api.github.com/users/pchaganti/events{/privacy}","received_events_url":"https://api.github.com/users/pchaganti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/service%20api","name":"service api","color":"c7def8"},{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/labels/Version%202","name":"Version 2","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-23T15:37:50Z","updated_at":"2016-05-23T17:34:10Z","closed_at":null,"body":"Updating the vpc config for a function returns an error about not having access to ec2 describe sec groups. I have complete admin access, and double checked by doing a separate describe sec groups. \r\n\r\n```Ruby\r\nnew_config = {\r\n          function_name: func_name\r\n      }\r\nnew_config[:vpc_config] = {subnet_ids: [\"sub-131313\"], security_group_ids: [\"sg-5613863\"]}\r\nlambda.update_function_configuration(new_config)\r\n```\r\n\r\n`\r\nAws::Lambda::Errors::AccessDeniedException - Your access has been denied by EC2, please make sure your request credentials have permission to DescribeSecurityGroups for sg-5613863. EC2 Error Code: UnauthorizedOperation. EC2 Error Message: You are not authorized to perform this operation.:\r\n`"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/221039609","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1192#issuecomment-221039609","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1192","id":221039609,"user":{"login":"pchaganti","id":6500,"avatar_url":"https://avatars.githubusercontent.com/u/6500?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaganti","html_url":"https://github.com/pchaganti","followers_url":"https://api.github.com/users/pchaganti/followers","following_url":"https://api.github.com/users/pchaganti/following{/other_user}","gists_url":"https://api.github.com/users/pchaganti/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaganti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaganti/subscriptions","organizations_url":"https://api.github.com/users/pchaganti/orgs","repos_url":"https://api.github.com/users/pchaganti/repos","events_url":"https://api.github.com/users/pchaganti/events{/privacy}","received_events_url":"https://api.github.com/users/pchaganti/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T17:32:39Z","updated_at":"2016-05-23T17:32:39Z","body":"Also I can set the vpc configuration to the default Lambda managed vpc without any issue. To do that, I just pass in an empty list of subnet and security group ids. That works just fine. When I try to pass in a list of vpc sec group ids, I always seem to get back the error.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"pchaganti"}}