Skip to content

Commit

Permalink
add conditional on id-sync config profile
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Mar 27, 2024
1 parent e2f186b commit ac268d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/070-id-sync/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ resource "aws_iam_role_policy" "this" {
* Create AppConfig configuration profile
*/
resource "aws_appconfig_configuration_profile" "this" {
count = var.app_id == "" ? 0 : 1

application_id = var.app_id
name = "${var.app_name}-${var.app_env}"
location_uri = "hosted"
Expand Down

0 comments on commit ac268d3

Please sign in to comment.