{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudfoundry-incubator/bosh-workspace/issues/123","repository_url":"https://api.github.com/repos/cloudfoundry-incubator/bosh-workspace","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/bosh-workspace/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/bosh-workspace/issues/123/comments","events_url":"https://api.github.com/repos/cloudfoundry-incubator/bosh-workspace/issues/123/events","html_url":"https://github.com/cloudfoundry-incubator/bosh-workspace/issues/123","id":154247038,"number":123,"title":"Terraform 'OptInRequired' error due to use of AWS Marketplace CentOS image","user":{"login":"roryirvine","id":8157031,"avatar_url":"https://avatars.githubusercontent.com/u/8157031?v=3","gravatar_id":"","url":"https://api.github.com/users/roryirvine","html_url":"https://github.com/roryirvine","followers_url":"https://api.github.com/users/roryirvine/followers","following_url":"https://api.github.com/users/roryirvine/following{/other_user}","gists_url":"https://api.github.com/users/roryirvine/gists{/gist_id}","starred_url":"https://api.github.com/users/roryirvine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roryirvine/subscriptions","organizations_url":"https://api.github.com/users/roryirvine/orgs","repos_url":"https://api.github.com/users/roryirvine/repos","events_url":"https://api.github.com/users/roryirvine/events{/privacy}","received_events_url":"https://api.github.com/users/roryirvine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T13:43:45Z","updated_at":"2016-05-11T13:50:01Z","closed_at":"2016-05-11T13:50:01Z","body":"I get the following error when running a 'make apply':\r\n\r\n> Error applying plan:\r\n> \r\n> 1 error(s) occurred:\r\n> \r\n> * aws_instance.bastion: Error launching source instance: OptInRequired: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit http://aws.amazon.com/marketplace/pp?sku=aw0evgkw8e5c1q413zgy5pjce\r\n> \tstatus code: 401, request id: 95e2c07d-6f86-49dd-947a-d6c74a1b769d\r\n> \r\n> Terraform does not automatically rollback in the face of errors.\r\n> Instead, your Terraform state file has been partially updated with\r\n> any resources that successfully completed. Please address the error\r\n> above and apply again to incrementally change your infrastructure.\r\n\r\nI assume that this is because I've never accepted the click-through license required by the CentOS images on AWS Marketplace.\r\n\r\nI don't think terraform has any way to automate this license acceptance step - so perhaps mentioning this in the docs is the best way to handle this for now?"}}