{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1552","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1552/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1552/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1552/events","html_url":"https://github.com/hashicorp/terraform/issues/1552","id":68882257,"number":1552,"title":"aws: Allow rolling updates for ASGs","user":{"login":"radeksimko","id":287584,"avatar_url":"https://avatars.githubusercontent.com/u/287584?v=3","gravatar_id":"","url":"https://api.github.com/users/radeksimko","html_url":"https://github.com/radeksimko","followers_url":"https://api.github.com/users/radeksimko/followers","following_url":"https://api.github.com/users/radeksimko/following{/other_user}","gists_url":"https://api.github.com/users/radeksimko/gists{/gist_id}","starred_url":"https://api.github.com/users/radeksimko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radeksimko/subscriptions","organizations_url":"https://api.github.com/users/radeksimko/orgs","repos_url":"https://api.github.com/users/radeksimko/repos","events_url":"https://api.github.com/users/radeksimko/events{/privacy}","received_events_url":"https://api.github.com/users/radeksimko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-04-16T09:24:18Z","updated_at":"2015-11-19T15:25:31Z","closed_at":null,"body":"Once #1109 is fixed, I'd like to be able to use Terraform to actually roll out the updated launch configuration and do it carefully.\r\n\r\nWhoever decides to not roll out the update and change the LC association only should still be allowed to do so.\r\n\r\nHere's an example from CloudFormation:\r\nhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html\r\n\r\nHow about something like this?\r\n\r\n```ruby\r\nresource \"aws_autoscaling_group\" \"test\" {\r\n  rolling_update_policy {\r\n    max_batch_size = 1\r\n    min_instances_in_service = 2\r\n    pause_time = \"PT0S\"\r\n    suspend_processes = [\"launch\", \"terminate\"]\r\n    wait_on_resource_signals = true\r\n  }\r\n}\r\n```\r\n\r\nthen if there's such policy defined, TF can use autoscaling API and shut down each EC2 instance separately and let ASG spin up a new one with an updated LC."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/158089117","html_url":"https://github.com/hashicorp/terraform/issues/1552#issuecomment-158089117","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1552","id":158089117,"user":{"login":"titotp","id":356327,"avatar_url":"https://avatars.githubusercontent.com/u/356327?v=3","gravatar_id":"","url":"https://api.github.com/users/titotp","html_url":"https://github.com/titotp","followers_url":"https://api.github.com/users/titotp/followers","following_url":"https://api.github.com/users/titotp/following{/other_user}","gists_url":"https://api.github.com/users/titotp/gists{/gist_id}","starred_url":"https://api.github.com/users/titotp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titotp/subscriptions","organizations_url":"https://api.github.com/users/titotp/orgs","repos_url":"https://api.github.com/users/titotp/repos","events_url":"https://api.github.com/users/titotp/events{/privacy}","received_events_url":"https://api.github.com/users/titotp/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T15:25:31Z","updated_at":"2015-11-19T15:25:31Z","body":"I am not seeing any activity on the autoscaling group"}}