FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_glacier_vault

Provides a Glacier Vault Resource. You can refer to the Glacier Developer Guide for a full explanation of the Glacier Vault functionality

~> NOTE: When removing a Glacier Vault, the Vault must be empty.

Example Usage

resource "aws_sns_topic" "aws_sns_topic" {
  name = "glacier-sns-topic"
}

resource "aws_glacier_vault" "my_archive" {
    name = "MyArchive"

    notification {
      sns_topic = "${aws_sns_topic.aws_sns_topic.arn}"
      events = ["ArchiveRetrievalCompleted","InventoryRetrievalCompleted"]
    }

    access_policy = <<EOF
{
    "Version":"2012-10-17",
    "Statement":[
       {
          "Sid": "add-read-only-perm",
          "Principal": "*",
          "Effect": "Allow",
          "Action": [
             "glacier:InitiateJob",
             "glacier:GetJobOutput"
          ],
          "Resource": "arn:aws:glacier:eu-west-1:432981146916:vaults/MyArchive"
       }
    ]
}
EOF

    tags {
      Test = "MyArchive"
    }
}

Argument Reference

The following arguments are supported:

notification supports the following:

Attributes Reference

The following attributes are exported:

Import

Glacier Vaults can be imported using the name, e.g.

$ terraform import aws_glacier_vault.archive my_archive

See the source of this document at Terraform.io