Skip to content

Commit

Permalink
Update Readme and Add depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
KamranBiglari committed Aug 10, 2023
1 parent 3042647 commit d9dc29f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_metric-alarm"></a> [metric-alarm](#module\_metric-alarm) | terraform-aws-modules/cloudwatch/aws//modules/log-metric-filter | ~> 4.0 |
| <a name="module_log-metric-filter"></a> [log-metric-filter](#module\_log-metric-filter) | terraform-aws-modules/cloudwatch/aws//modules/log-metric-filter | ~> 4.0 |
| <a name="module_metric-alarm"></a> [metric-alarm](#module\_metric-alarm) | terraform-aws-modules/cloudwatch/aws//modules/metric-alarm | ~> 4.0 |

## Resources

Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ module "metric-alarm" {
try(var.alarm_actions[aK]["ok"][aV[var.current_environment]].arn, "")
if can(var.alarm_actions[aK]["ok"][aV[var.current_environment]].arn)
]

depends_on = [ module.log-metric-filter ]

}

#CloudWatch Custom Metrics
Expand Down

0 comments on commit d9dc29f

Please sign in to comment.