Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03a5824

Browse files
make compatible_runtimes not required
1 parent 5b2eb57 commit 03a5824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ resource "aws_lambda_layer_version" "this" {
151151
description = var.description
152152
license_info = var.license_info
153153

154-
compatible_runtimes = length(var.compatible_runtimes) > 0 ? var.compatible_runtimes : [var.runtime]
154+
compatible_runtimes = length(var.compatible_runtimes) > 0 ? var.compatible_runtimes : (var.runtime==""?null:[var.runtime])
155155
compatible_architectures = var.compatible_architectures
156156
skip_destroy = var.layer_skip_destroy
157157

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /