Skip to content

Commit

Permalink
fix: Do not create a deployment when a version is not provided (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrt authored Oct 30, 2023
1 parent 6824a6d commit 46ab6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ resource "aws_appconfig_deployment_strategy" "this" {
}

resource "aws_appconfig_deployment" "this" {
for_each = var.create ? var.environments : {}
for_each = var.create && (var.deployment_configuration_version != null) ? var.environments : {}

description = coalesce(var.deployment_description, var.description)
application_id = aws_appconfig_application.this[0].id
Expand Down

0 comments on commit 46ab6cb

Please sign in to comment.