{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1884","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1884/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1884/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1884/events","html_url":"https://github.com/hashicorp/terraform/issues/1884","id":74660847,"number":1884,"title":"provider/aws / provisioner/file: allow file upload to s3 bucket","user":{"login":"JeanMertz","id":383250,"avatar_url":"https://avatars.githubusercontent.com/u/383250?v=3","gravatar_id":"","url":"https://api.github.com/users/JeanMertz","html_url":"https://github.com/JeanMertz","followers_url":"https://api.github.com/users/JeanMertz/followers","following_url":"https://api.github.com/users/JeanMertz/following{/other_user}","gists_url":"https://api.github.com/users/JeanMertz/gists{/gist_id}","starred_url":"https://api.github.com/users/JeanMertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeanMertz/subscriptions","organizations_url":"https://api.github.com/users/JeanMertz/orgs","repos_url":"https://api.github.com/users/JeanMertz/repos","events_url":"https://api.github.com/users/JeanMertz/events{/privacy}","received_events_url":"https://api.github.com/users/JeanMertz/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":7,"created_at":"2015-05-09T12:21:02Z","updated_at":"2015-05-27T11:51:24Z","closed_at":null,"body":"It would be nice if we could upload files to S3 using the `file` provisioner.\r\n\r\nUse case:\r\n\r\nI have a tarred OpenVPN configuration that I need to place on the servers. I can't use the `ssh` connection, because the cluster is in a VPC which doesn't allow ssh'ing from outside the VPC. The VPN starts automatically on cluster creation, so eventually I can connect to the OpenVPN server and ssh from inside the VPC, but for this to work, the VPN data file needs to be available before OpenVPN can start.\r\n\r\nSo I need a way to make private data available on the machine, and the best way inside AWS to do that would be to use a bucket to store this data and combine that with a Terraform controlled IAM role to give access to this data.\r\n\r\n(on other providers like OpenStack I just send the file along with the provided `user-data`, but AWS has a 16KB user-data limit, so that is not an option)"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/105882785","html_url":"https://github.com/hashicorp/terraform/issues/1884#issuecomment-105882785","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1884","id":105882785,"user":{"login":"m-s-austin","id":11151168,"avatar_url":"https://avatars.githubusercontent.com/u/11151168?v=3","gravatar_id":"","url":"https://api.github.com/users/m-s-austin","html_url":"https://github.com/m-s-austin","followers_url":"https://api.github.com/users/m-s-austin/followers","following_url":"https://api.github.com/users/m-s-austin/following{/other_user}","gists_url":"https://api.github.com/users/m-s-austin/gists{/gist_id}","starred_url":"https://api.github.com/users/m-s-austin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-s-austin/subscriptions","organizations_url":"https://api.github.com/users/m-s-austin/orgs","repos_url":"https://api.github.com/users/m-s-austin/repos","events_url":"https://api.github.com/users/m-s-austin/events{/privacy}","received_events_url":"https://api.github.com/users/m-s-austin/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T11:51:24Z","updated_at":"2015-05-27T11:51:24Z","body":"https://github.com/hashicorp/terraform/pull/2079\r\n\r\nTested and working well so far. I have a resource bundle of a couple hundred files that are synced and destroyed to the bucket as expected."}}