Skip to content

Commit

Permalink
Merge pull request #24 from lgallard/fix/plan-role-output
Browse files Browse the repository at this point in the history
Allows attaching an already created IAM role to the plan
  • Loading branch information
lgallard authored Apr 7, 2021
2 parents 6027132 + d06afc0 commit 5dee4c7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.8.0 (April 7, 2021)

ENHANCEMENTS:

* Allows attaching an already created IAM role to the Plan (thanks @samcre)
* Update README to include Terraform rsources used

## 0.7.0 (February 28, 2021)

ENHANCEMENTS:
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ module "aws_backup_example" {
}
}
```

## Requirements

| Name | Version |
Expand All @@ -108,6 +107,24 @@ module "aws_backup_example" {
|------|---------|
| aws | >= 2.58.0 |

## Modules

No Modules.

## Resources

| Name |
|------|
| [aws_backup_plan](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_plan) |
| [aws_backup_selection](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_selection) |
| [aws_backup_vault](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_vault) |
| [aws_backup_vault_notifications](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/backup_vault_notifications) |
| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) |
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) |
| [aws_sns_topic_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_policy) |

## Inputs

| Name | Description | Type | Default | Required |
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ output "plan_version" {

output "plan_role" {
description = "The service role of the backup plan"
value = join("", aws_iam_role.ab_role.*.name)
value = var.iam_role_arn == null ? join("", aws_iam_role.ab_role.*.name) : var.iam_role_arn
}

0 comments on commit 5dee4c7

Please sign in to comment.