Skip to content

Commit

Permalink
fix: create api key condition
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Oct 10, 2023
1 parent da902b0 commit ab321c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/iam-application/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "scaleway_iam_application" "this" {
}

resource "scaleway_iam_api_key" "this" {
count = var.create_apikey ? 0 : 1
count = var.create_apikey ? 1 : 0
description = var.apikey_description
application_id = scaleway_iam_application.this.id
expires_at = var.apikey_expires_at
Expand Down

0 comments on commit ab321c1

Please sign in to comment.