An open API service indexing awesome lists of open source software.

https://github.com/jameswoolfenden/terraform-aws-glacier

It's about glacier
https://github.com/jameswoolfenden/terraform-aws-glacier

aws module terraform

Last synced: 2 months ago
JSON representation

It's about glacier

Awesome Lists containing this project

README

          

# terraform-aws-glacier

[![Build Status](https://github.com/JamesWoolfenden/terraform-aws-glacier/workflows/Verify/badge.svg?branch=main)](https://github.com/JamesWoolfenden/terraform-aws-glacier)
[![Latest Release](https://img.shields.io/github/release/JamesWoolfenden/terraform-aws-glacier.svg)](https://github.com/JamesWoolfenden/terraform-aws-glacier/releases/latest)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/JamesWoolfenden/terraform-aws-glacier.svg?label=latest)](https://github.com/JamesWoolfenden/terraform-aws-glacier/releases/latest)
![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.14.0-blue.svg)
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/JamesWoolfenden/terraform-aws-glacier/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-aws-glacier&benchmark=CIS+AWS+V1.2)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![checkov](https://img.shields.io/badge/checkov-verified-brightgreen)](https://www.checkov.io/)
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/jameswoolfenden/terraform-aws-glacier/general)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=JamesWoolfenden%2Fterraform-aws-glacier&benchmark=INFRASTRUCTURE+SECURITY)

Creates a Glacier Vault, with policy and lock.

---

It's 100% Open Source and licensed under the [APACHE2](LICENSE).

## Usage

Include this repository as a module in your existing terraform code:

```hcl
module "glacier" {
source = "JamesWoolfenden/glacier/aws"
version = "0.0.1"
}
```

## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_glacier_vault.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/glacier_vault) | resource |
| [aws_glacier_vault_lock.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/glacier_vault_lock) | resource |
| [aws_sns_topic.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic) | resource |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy_document.example](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [complete\_lock](#input\_complete\_lock) | Set to true for an immutable permanent lock | `bool` | `false` | no |
| [ignore\_deletion\_error](#input\_ignore\_deletion\_error) | Allow Terraform to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via Terraform, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete\_lock being set to true | `bool` | `false` | no |
| [sns\_topic\_name](#input\_sns\_topic\_name) | n/a | `string` | `"glacier-sns-topic-"` | no |
| [vault\_name](#input\_vault\_name) | n/a | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [lock](#output\_lock) | n/a |
| [topic](#output\_topic) | n/a |
| [vault](#output\_vault) | n/a |

## Policy

This is the policy required to build this project:

The Terraform resource required is:

```golang
resource "aws_iam_policy" "terraform_pike" {
name_prefix = "terraform_pike"
path = "/"
description = "Pike Autogenerated policy from IAC"

policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:DescribeAccountAttributes"
],
"Resource": [
"*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"glacier:AbortVaultLock",
"glacier:AddTagsToVault",
"glacier:CompleteVaultLock",
"glacier:CreateVault",
"glacier:DeleteVault",
"glacier:DescribeVault",
"glacier:GetVaultAccessPolicy",
"glacier:GetVaultLock",
"glacier:InitiateVaultLock",
"glacier:ListTagsForVault",
"glacier:RemoveTagsFromVault",
"glacier:SetVaultAccessPolicy",
"glacier:SetVaultNotifications"
],
"Resource": [
"*"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"sns:CreateTopic",
"sns:DeleteTopic",
"sns:GetTopicAttributes",
"sns:ListTagsForResource",
"sns:SetTopicAttributes",
"sns:TagResource",
"sns:UnTagResource"
],
"Resource": [
"*"
]
}
]
})
}

```

## Related Projects

Check out these related projects.

- [terraform-aws-codebuild](https://github.com/jameswoolfenden/terraform-aws-codebuild) - Making a Build pipeline

## Help

**Got a question?**

File a GitHub [issue](https://github.com/jameswoolfenden/terraform-aws-glacier/issues).

## Contributing

### Bug Reports & Feature Requests

Please use the [issue tracker](https://github.com/jameswoolfenden/terraform-aws-glacier/issues) to report any bugs or file feature requests.

## Copyrights

Copyright © 2019-2026 James Woolfenden

## License

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

See [LICENSE](LICENSE) for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

### Contributors

[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]
[James Woolfenden][jameswoolfenden_homepage]

[jameswoolfenden_homepage]: https://github.com/jameswoolfenden
[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150