{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/39598664","id":39598664,"diff_hunk":"@@ -0,0 +1,68 @@\n+---\n+layout: \"aws\"\n+page_title: \"AWS: aws_glacier_vault\"\n+sidebar_current: \"docs-aws-resource-glacier-vault\"\n+description: |-\n+  Provides a Glacier Vault.\n+---\n+\n+# aws\\_glacier\\_vault\n+\n+Provides a Glacier Vault Resource. You can refer to the [Glacier Developer Guide](http://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-vaults.html) for a full explanation of the Glacier Vault functionality\n+\n+## Example Usage\n+\n+```\n+resource \"aws_glacier_vault\" \"my_archive\" {\n+    name = \"MyArchive\"\n+    \n+    notification {\n+      sns_topic = \"arn:aws:sns:us-west-2:432981146916:MyArchiveTopic\"\n+      events = [\"ArchiveRetrievalCompleted\",\"InventoryRetrievalCompleted\"]\n+    }\n+    \n+    access_policy = <<EOF\n+{\n+    \"Version\":\"2012-10-17\",\n+    \"Statement\":[\n+       {\n+          \"Sid\": \"add-read-only-perm\",\n+          \"Principal\": \"*\",\n+          \"Effect\": \"Allow\",\n+          \"Action\": [\n+             \"glacier:InitiateJob\",\n+             \"glacier:GetJobOutput\"\n+          ],\n+          \"Resource\": [\n+             \"arn:aws:glacier:eu-west-1:432981146916:vaults/MyArchive\"\n+          ]\n+       }\n+    ]\n+}\n+EOF\n+\n+    tags {\n+      Test=\"MyArchive\"\n+    }\n+}\n+```\n+\n+## Argument Reference\n+\n+The following arguments are supported:\n+\n+* `name` - (Required) The name of the Vault. Names can be between 1 and 255 characters long and the valid characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and '.' (period).","path":"website/source/docs/providers/aws/r/glacier_vault.html.markdown","position":54,"original_position":54,"commit_id":"d59aec250c296345be2d073ba4e72fc1a612484a","original_commit_id":"d59aec250c296345be2d073ba4e72fc1a612484a","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},"body":"I think we'll need to escape the underscore somehow to avoid the italics being applied to the rest of this file.","created_at":"2015-09-16T06:57:50Z","updated_at":"2015-09-16T06:57:50Z","html_url":"https://github.com/hashicorp/terraform/pull/3169#discussion_r39598664","pull_request_url":"https://api.github.com/repos/hashicorp/terraform/pulls/3169","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments/39598664"},"html":{"href":"https://github.com/hashicorp/terraform/pull/3169#discussion_r39598664"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/3169"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/3169","id":44162793,"html_url":"https://github.com/hashicorp/terraform/pull/3169","diff_url":"https://github.com/hashicorp/terraform/pull/3169.diff","patch_url":"https://github.com/hashicorp/terraform/pull/3169.patch","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/3169","number":3169,"state":"open","locked":false,"title":"AWS Resource for Glacier Vault","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"body":"Started to build the resource to create an AWS Glacier Vault\r\n\r\n**Please note that I am pretty new to Go and this will take a little while to complete while I learn more about it**\r\n\r\n- [x] Resource for Vault Management\r\n- [x] Documentation\r\n- [x] Acceptance Tests\r\n\r\n\r\nI have added a few basic acceptance tests:\r\n\r\n```\r\nterraform [aws-glacier-resource●●] % make testacc TEST=./builtin/providers/aws TESTARGS='-run=GlacierVault' 2>~/tf.log\r\ngo generate ./...\r\nTF_ACC=1 go test ./builtin/providers/aws -v -run=GlacierVault -timeout 90m\r\n=== RUN TestAccAWSGlacierVault_basic\r\n--- PASS: TestAccAWSGlacierVault_basic (3.31s)\r\n=== RUN TestAccAWSGlacierVault_full\r\n--- PASS: TestAccAWSGlacierVault_full (3.40s)\r\nPASS\r\nok  \tgithub.com/hashicorp/terraform/builtin/providers/aws\t6.718s\r\n```","created_at":"2015-09-03T21:59:03Z","updated_at":"2015-09-16T06:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5c9ca6da9d1bfaf6e80882489bb07de6633750a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/terraform/pulls/3169/commits","review_comments_url":"https://api.github.com/repos/hashicorp/terraform/pulls/3169/comments","review_comment_url":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/3169/comments","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/d59aec250c296345be2d073ba4e72fc1a612484a","head":{"label":"stack72:aws-glacier-resource","ref":"aws-glacier-resource","sha":"d59aec250c296345be2d073ba4e72fc1a612484a","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"repo":{"id":41881616,"name":"terraform","full_name":"stack72/terraform","owner":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stack72/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":true,"url":"https://api.github.com/repos/stack72/terraform","forks_url":"https://api.github.com/repos/stack72/terraform/forks","keys_url":"https://api.github.com/repos/stack72/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stack72/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stack72/terraform/teams","hooks_url":"https://api.github.com/repos/stack72/terraform/hooks","issue_events_url":"https://api.github.com/repos/stack72/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/stack72/terraform/events","assignees_url":"https://api.github.com/repos/stack72/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/stack72/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/stack72/terraform/tags","blobs_url":"https://api.github.com/repos/stack72/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stack72/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stack72/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/stack72/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stack72/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/stack72/terraform/languages","stargazers_url":"https://api.github.com/repos/stack72/terraform/stargazers","contributors_url":"https://api.github.com/repos/stack72/terraform/contributors","subscribers_url":"https://api.github.com/repos/stack72/terraform/subscribers","subscription_url":"https://api.github.com/repos/stack72/terraform/subscription","commits_url":"https://api.github.com/repos/stack72/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/stack72/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/stack72/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/stack72/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/stack72/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/stack72/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stack72/terraform/merges","archive_url":"https://api.github.com/repos/stack72/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stack72/terraform/downloads","issues_url":"https://api.github.com/repos/stack72/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/stack72/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/stack72/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/stack72/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stack72/terraform/labels{/name}","releases_url":"https://api.github.com/repos/stack72/terraform/releases{/id}","created_at":"2015-09-03T20:16:33Z","updated_at":"2015-09-03T20:16:36Z","pushed_at":"2015-09-15T23:07:57Z","git_url":"git://github.com/stack72/terraform.git","ssh_url":"git@github.com:stack72/terraform.git","clone_url":"https://github.com/stack72/terraform.git","svn_url":"https://github.com/stack72/terraform","homepage":"http://www.terraform.io","size":28970,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"c777f8c95b01f93690c8f27dc5da665af9ab66cd","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":17728164,"name":"terraform","full_name":"hashicorp/terraform","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/terraform","description":"Terraform is a tool for building, changing, and combining infrastructure safely and efficiently.","fork":false,"url":"https://api.github.com/repos/hashicorp/terraform","forks_url":"https://api.github.com/repos/hashicorp/terraform/forks","keys_url":"https://api.github.com/repos/hashicorp/terraform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/terraform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/terraform/teams","hooks_url":"https://api.github.com/repos/hashicorp/terraform/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/terraform/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/terraform/events","assignees_url":"https://api.github.com/repos/hashicorp/terraform/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/terraform/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/terraform/tags","blobs_url":"https://api.github.com/repos/hashicorp/terraform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/terraform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/terraform/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/terraform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/terraform/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/terraform/languages","stargazers_url":"https://api.github.com/repos/hashicorp/terraform/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/terraform/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/terraform/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/terraform/subscription","commits_url":"https://api.github.com/repos/hashicorp/terraform/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/terraform/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/terraform/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/terraform/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/terraform/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/terraform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/terraform/merges","archive_url":"https://api.github.com/repos/hashicorp/terraform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/terraform/downloads","issues_url":"https://api.github.com/repos/hashicorp/terraform/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/terraform/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/terraform/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/terraform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/terraform/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/terraform/releases{/id}","created_at":"2014-03-13T22:25:48Z","updated_at":"2015-09-16T06:26:55Z","pushed_at":"2015-09-16T06:30:22Z","git_url":"git://github.com/hashicorp/terraform.git","ssh_url":"git@github.com:hashicorp/terraform.git","clone_url":"https://github.com/hashicorp/terraform.git","svn_url":"https://github.com/hashicorp/terraform","homepage":"http://www.terraform.io","size":51259,"stargazers_count":2984,"watchers_count":2984,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":644,"mirror_url":null,"open_issues_count":618,"forks":644,"open_issues":618,"watchers":2984,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/3169"},"html":{"href":"https://github.com/hashicorp/terraform/pull/3169"},"issue":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/3169"},"comments":{"href":"https://api.github.com/repos/hashicorp/terraform/issues/3169/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/3169/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/terraform/pulls/3169/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/terraform/statuses/d59aec250c296345be2d073ba4e72fc1a612484a"}}}}