{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1394","repository_url":"https://api.github.com/repos/aws/aws-sdk-ruby","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1394/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1394/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1394","id":202763570,"number":1394,"title":"DeploymentPolicy ignored in aws:elasticbeanstalk:command during Aws::ElasticBeanstalk::Client#update_environment","user":{"login":"miensol","id":357191,"avatar_url":"https://avatars.githubusercontent.com/u/357191?v=3","gravatar_id":"","url":"https://api.github.com/users/miensol","html_url":"https://github.com/miensol","followers_url":"https://api.github.com/users/miensol/followers","following_url":"https://api.github.com/users/miensol/following{/other_user}","gists_url":"https://api.github.com/users/miensol/gists{/gist_id}","starred_url":"https://api.github.com/users/miensol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miensol/subscriptions","organizations_url":"https://api.github.com/users/miensol/orgs","repos_url":"https://api.github.com/users/miensol/repos","events_url":"https://api.github.com/users/miensol/events{/privacy}","received_events_url":"https://api.github.com/users/miensol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-24T09:21:15Z","updated_at":"2017-01-24T22:12:00Z","closed_at":null,"body":"\r\nHi All,\r\n\r\nWe are using https://github.com/ThoughtWorksStudios/eb_deployer which under the hood uses ElasticBeanstalk Ruby Aws Sdk. The [`Aws::ElasticBeanstalk::Client#update_environment`](http://docs.aws.amazon.com/sdkforruby/api/Aws/ElasticBeanstalk/Client.html#update_environment-instance_method) method is used in particular to trigger a deployment. I'm trying to make use of `RollingWithAdditionalBatch` deployment policy however this settings seems to be ignored when the environment update is initiated via mentioned sdk method. \r\n\r\nInside of `option_settings` parameter of `update_environment` we have:\r\n```\r\n{\"namespace\"=>\"aws:elasticbeanstalk:command\",\"option_name\"=>\"DeploymentPolicy\",\"value\"=>\"RollingWithAdditionalBatch\"},\r\n```\r\n\r\nHowever despite the above the deployment is using Rolling strategy as far as I can tell:\r\n```\r\n2017-01-11 15:59:42 UTC+0100\tINFO\tEnvironment update completed successfully.\r\n2017-01-11 15:59:42 UTC+0100\tINFO\tSuccessfully deployed new configuration to environment.\r\n2017-01-11 15:59:42 UTC+0100\tINFO\tNew application version was deployed to running EC2 instances.\r\n2017-01-11 15:58:32 UTC+0100\tINFO\tDeploying new version to instance(s).\r\n2017-01-11 15:57:57 UTC+0100\tINFO\tUpdating environment ENV_ID configuration settings.\r\n```\r\n\r\nYou can find the details of the method call in a [update-environment-call.txt](https://github.com/aws/aws-sdk-ruby/files/726149/update-environment-call.txt).\r\n\r\n_What's interesting is that when the deployment is triggered through AWS console the Rolling With Additional Batch is executed properly:_\r\n```\r\n2017-01-12 08:44:12 UTC+0100\tINFO\tRolling with Additional Batch deployment policy enabled. Launching a new batch of 1 additional instance(s).\r\n```\r\n\r\nIs this a bug in SDK, AWS API or I'm calling the method incorrectly?\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/274955913","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1394#issuecomment-274955913","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1394","id":274955913,"user":{"login":"cjyclaire","id":10790394,"avatar_url":"https://avatars.githubusercontent.com/u/10790394?v=3","gravatar_id":"","url":"https://api.github.com/users/cjyclaire","html_url":"https://github.com/cjyclaire","followers_url":"https://api.github.com/users/cjyclaire/followers","following_url":"https://api.github.com/users/cjyclaire/following{/other_user}","gists_url":"https://api.github.com/users/cjyclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/cjyclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjyclaire/subscriptions","organizations_url":"https://api.github.com/users/cjyclaire/orgs","repos_url":"https://api.github.com/users/cjyclaire/repos","events_url":"https://api.github.com/users/cjyclaire/events{/privacy}","received_events_url":"https://api.github.com/users/cjyclaire/received_events","type":"User","site_admin":false},"created_at":"2017-01-24T22:12:00Z","updated_at":"2017-01-24T22:12:00Z","body":"@miensol Interesting, taking a look to see if I could reproduce the issue. Thanks for the information."}}
{"actor":{"display_login":"cjyclaire"}}