Skip to content

Commit

Permalink
Update Terraform cloudposse/sns-topic/aws to v0.16.0 (#9)
Browse files Browse the repository at this point in the history
* Update Terraform cloudposse/sns-topic/aws to v0.16.0

* Auto Format

* update var.subscribers

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
Co-authored-by: SweetOps <vladimir.fess@gmail.com>
  • Loading branch information
4 people committed Mar 1, 2021
1 parent 463d295 commit 4be9937
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,24 @@ Available targets:
|------|---------|
| aws | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| findings_label | cloudposse/label/null | 0.24.1 |
| sns_topic | cloudposse/sns-topic/aws | 0.16.0 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_cloudwatch_event_rule](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule) |
| [aws_cloudwatch_event_target](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) |
| [aws_guardduty_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_detector) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
| [aws_sns_topic_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_policy) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -170,7 +188,7 @@ Available targets:
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no |
| subscribers | A map of subscription configurations for SNS topics<br><br>For more information, see:<br>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription#argument-reference<br> <br>protocol: <br> The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially <br> supported, see link) (email is an option but is unsupported in terraform, see link).<br>endpoint: <br> The endpoint to send data to, the contents will vary with the protocol. (see link for more information)<br>endpoint\_auto\_confirms:<br> Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty. Default is <br> false | <pre>map(object({<br> protocol = string<br> endpoint = string<br> endpoint_auto_confirms = bool<br> }))</pre> | `{}` | no |
| subscribers | A map of subscription configurations for SNS topics<br><br>For more information, see:<br>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription#argument-reference<br> <br>protocol: <br> The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially <br> supported, see link) (email is an option but is unsupported in terraform, see link).<br>endpoint: <br> The endpoint to send data to, the contents will vary with the protocol. (see link for more information)<br>endpoint\_auto\_confirms:<br> Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty. Default is <br> false<br>raw\_message\_delivery:<br> Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). <br> Default is false | <pre>map(object({<br> protocol = string<br> endpoint = string<br> endpoint_auto_confirms = bool<br> raw_message_delivery = bool<br> }))</pre> | `{}` | no |
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |

## Outputs
Expand All @@ -180,7 +198,6 @@ Available targets:
| guardduty\_detector | GuardDuty detector |
| sns\_topic | SNS topic |
| sns\_topic\_subscriptions | SNS topic subscriptions |

<!-- markdownlint-restore -->


Expand Down
21 changes: 19 additions & 2 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@
|------|---------|
| aws | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| findings_label | cloudposse/label/null | 0.24.1 |
| sns_topic | cloudposse/sns-topic/aws | 0.16.0 |
| this | cloudposse/label/null | 0.24.1 |

## Resources

| Name |
|------|
| [aws_cloudwatch_event_rule](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule) |
| [aws_cloudwatch_event_target](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) |
| [aws_guardduty_detector](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/guardduty_detector) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
| [aws_sns_topic_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_policy) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -34,7 +52,7 @@
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no |
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no |
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no |
| subscribers | A map of subscription configurations for SNS topics<br><br>For more information, see:<br>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription#argument-reference<br> <br>protocol: <br> The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially <br> supported, see link) (email is an option but is unsupported in terraform, see link).<br>endpoint: <br> The endpoint to send data to, the contents will vary with the protocol. (see link for more information)<br>endpoint\_auto\_confirms:<br> Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty. Default is <br> false | <pre>map(object({<br> protocol = string<br> endpoint = string<br> endpoint_auto_confirms = bool<br> }))</pre> | `{}` | no |
| subscribers | A map of subscription configurations for SNS topics<br><br>For more information, see:<br>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription#argument-reference<br> <br>protocol: <br> The protocol to use. The possible values for this are: sqs, sms, lambda, application. (http or https are partially <br> supported, see link) (email is an option but is unsupported in terraform, see link).<br>endpoint: <br> The endpoint to send data to, the contents will vary with the protocol. (see link for more information)<br>endpoint\_auto\_confirms:<br> Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty. Default is <br> false<br>raw\_message\_delivery:<br> Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property). <br> Default is false | <pre>map(object({<br> protocol = string<br> endpoint = string<br> endpoint_auto_confirms = bool<br> raw_message_delivery = bool<br> }))</pre> | `{}` | no |
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |

## Outputs
Expand All @@ -44,5 +62,4 @@
| guardduty\_detector | GuardDuty detector |
| sns\_topic | SNS topic |
| sns\_topic\_subscriptions | SNS topic subscriptions |

<!-- markdownlint-restore -->
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_guardduty_detector" "guardduty" {
module "sns_topic" {

source = "cloudposse/sns-topic/aws"
version = "0.15.0"
version = "0.16.0"
count = local.create_sns_topic ? 1 : 0

subscribers = var.subscribers
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ variable "subscribers" {
protocol = string
endpoint = string
endpoint_auto_confirms = bool
raw_message_delivery = bool
}))
description = <<-DOC
A map of subscription configurations for SNS topics
Expand All @@ -28,6 +29,9 @@ variable "subscribers" {
endpoint_auto_confirms:
Boolean indicating whether the end point is capable of auto confirming subscription e.g., PagerDuty. Default is
false
raw_message_delivery:
Boolean indicating whether or not to enable raw message delivery (the original message is directly passed, not wrapped in JSON with the original message in the message property).
Default is false
DOC
default = {}
}
Expand Down

0 comments on commit 4be9937

Please sign in to comment.