Skip to content

Commit

Permalink
chore: run terraform fmt on changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattp0 committed Jul 14, 2023
1 parent fca5c56 commit a634b2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
21 changes: 10 additions & 11 deletions cumulus/policy.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resource "aws_sns_topic_policy" "metrics_sns_policy" {
for_each = var.metrics_es_aws_account_id != null ? {
"granules" = module.cumulus.report_granules_sns_topic_arn
"executions" = module.cumulus.report_executions_sns_topic_arn
"collections" = module.cumulus.report_collections_sns_topic_arn
"pdrs" = module.cumulus.report_pdrs_sns_topic_arn
"granules" = module.cumulus.report_granules_sns_topic_arn
"executions" = module.cumulus.report_executions_sns_topic_arn
"collections" = module.cumulus.report_collections_sns_topic_arn
"pdrs" = module.cumulus.report_pdrs_sns_topic_arn
} : {}
arn = each.value

Expand All @@ -12,19 +12,18 @@ resource "aws_sns_topic_policy" "metrics_sns_policy" {

data "aws_iam_policy_document" "metrics_sns_topics_policy" {
policy_id = "__default_policy_ID"
for_each = var.metrics_es_aws_account_id != null ? {
"granules" = module.cumulus.report_granules_sns_topic_arn
"executions" = module.cumulus.report_executions_sns_topic_arn
"collections" = module.cumulus.report_collections_sns_topic_arn
"pdrs" = module.cumulus.report_pdrs_sns_topic_arn
} : {}
for_each = var.metrics_es_aws_account_id != null ? {
"granules" = module.cumulus.report_granules_sns_topic_arn
"executions" = module.cumulus.report_executions_sns_topic_arn
"collections" = module.cumulus.report_collections_sns_topic_arn
"pdrs" = module.cumulus.report_pdrs_sns_topic_arn
} : {}

statement {
actions = [
"SNS:Subscribe",
]


effect = "Allow"

principals {
Expand Down
12 changes: 6 additions & 6 deletions cumulus/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ variable "lzards_provider" {

variable "lzards_api" {
description = "LZARDS backup API endpoint"
type = string
default = ""
type = string
default = ""
}

variable "lzards_s3_link_timeout" {
Expand Down Expand Up @@ -388,8 +388,8 @@ variable "thottled_queue_execution_limit" {

variable "lambda_memory_sizes" {
description = "Memory sizes for lambda functions"
type = map(string)
default = {}
type = map(string)
default = {}
}

variable "lambda_timeouts" {
Expand All @@ -411,8 +411,8 @@ variable "cloudwatch_log_retention_periods" {
}

variable "default_log_retention_days" {
type = number
default = 30
type = number
default = 30
description = "Optional default value that user chooses for their log retention periods"
}

Expand Down

0 comments on commit a634b2d

Please sign in to comment.