{"action":"created","issue":{"url":"https://api.github.com/repos/druid-io/druid/issues/2567","repository_url":"https://api.github.com/repos/druid-io/druid","labels_url":"https://api.github.com/repos/druid-io/druid/issues/2567/labels{/name}","comments_url":"https://api.github.com/repos/druid-io/druid/issues/2567/comments","events_url":"https://api.github.com/repos/druid-io/druid/issues/2567/events","html_url":"https://github.com/druid-io/druid/pull/2567","id":137386491,"number":2567,"title":"Fix EC2AutoScaler Provisioning IAM Profile","user":{"login":"nicktylah","id":6968226,"avatar_url":"https://avatars.githubusercontent.com/u/6968226?v=3","gravatar_id":"","url":"https://api.github.com/users/nicktylah","html_url":"https://github.com/nicktylah","followers_url":"https://api.github.com/users/nicktylah/followers","following_url":"https://api.github.com/users/nicktylah/following{/other_user}","gists_url":"https://api.github.com/users/nicktylah/gists{/gist_id}","starred_url":"https://api.github.com/users/nicktylah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicktylah/subscriptions","organizations_url":"https://api.github.com/users/nicktylah/orgs","repos_url":"https://api.github.com/users/nicktylah/repos","events_url":"https://api.github.com/users/nicktylah/events{/privacy}","received_events_url":"https://api.github.com/users/nicktylah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-29T21:47:37Z","updated_at":"2016-03-14T20:34:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/druid-io/druid/pulls/2567","html_url":"https://github.com/druid-io/druid/pull/2567","diff_url":"https://github.com/druid-io/druid/pull/2567.diff","patch_url":"https://github.com/druid-io/druid/pull/2567.patch"},"body":"  - When an IAM profile like `{ \"name\": \"profileName\", \"arn\": \"arn:aws:iam::1234:instance-profile/profileName\" }` is passed to the overlord's worker config, the following error is\r\n  produced by the AWS java sdk:\r\n\r\n```\r\nERROR [RemoteTaskRunner-ResourceManagement--0] io.druid.indexing.overlord.autoscaling.ec2.EC2AutoScaler - Unable to provision any EC2 instances.\r\ncom.amazonaws.AmazonServiceException: The parameter 'iamInstanceProfile.name' may not be used in combination with 'iamInstanceProfile.arn' (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 3162b924-ffed-46b9-9128-a7c87f37864a)\r\n        at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182) ~[aws-java-sdk-core-1.10.21.jar:?]\r\n        at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770) ~[aws-java-sdk-core-1.10.21.jar:?]\r\n        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489) ~[aws-java-sdk-core-1.10.21.jar:?]\r\n        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310) ~[aws-java-sdk-core-1.10.21.jar:?]\r\n        at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:11901) ~[aws-java-sdk-ec2-1.10.21.jar:?]\r\n        at com.amazonaws.services.ec2.AmazonEC2Client.runInstances(AmazonEC2Client.java:5724) ~[aws-java-sdk-ec2-1.10.21.jar:?]\r\n        at io.druid.indexing.overlord.autoscaling.ec2.EC2AutoScaler.provision(EC2AutoScaler.java:162) [druid-indexing-service-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]\r\n        at io.druid.indexing.overlord.autoscaling.SimpleResourceManagementStrategy.doProvision(SimpleResourceManagementStrategy.java:138) [druid-indexing-service-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]\r\n        at io.druid.indexing.overlord.autoscaling.SimpleResourceManagementStrategy$4.run(SimpleResourceManagementStrategy.java:285) [druid-indexing-service-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]\r\n        at com.metamx.common.concurrent.ScheduledExecutors$3.call(ScheduledExecutors.java:140) [java-util-0.27.7.jar:?]\r\n        at com.metamx.common.concurrent.ScheduledExecutors$3.call(ScheduledExecutors.java:136) [java-util-0.27.7.jar:?]\r\n        at com.metamx.common.concurrent.ScheduledExecutors$4.run(ScheduledExecutors.java:173) [java-util-0.27.7.jar:?]\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]\r\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_45]\r\n        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_45]\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]\r\n        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]\r\n```\r\n\r\n  - Do not set the name when attempting to provision instances with an IAM Profile"},"comment":{"url":"https://api.github.com/repos/druid-io/druid/issues/comments/196510760","html_url":"https://github.com/druid-io/druid/pull/2567#issuecomment-196510760","issue_url":"https://api.github.com/repos/druid-io/druid/issues/2567","id":196510760,"user":{"login":"fjy","id":428325,"avatar_url":"https://avatars.githubusercontent.com/u/428325?v=3","gravatar_id":"","url":"https://api.github.com/users/fjy","html_url":"https://github.com/fjy","followers_url":"https://api.github.com/users/fjy/followers","following_url":"https://api.github.com/users/fjy/following{/other_user}","gists_url":"https://api.github.com/users/fjy/gists{/gist_id}","starred_url":"https://api.github.com/users/fjy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjy/subscriptions","organizations_url":"https://api.github.com/users/fjy/orgs","repos_url":"https://api.github.com/users/fjy/repos","events_url":"https://api.github.com/users/fjy/events{/privacy}","received_events_url":"https://api.github.com/users/fjy/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T20:34:41Z","updated_at":"2016-03-14T20:34:41Z","body":":+1: "}}