Skip to content

Commit 63b7482

Browse files
committed
chore: enusre import does not function if mode is serverless
1 parent b823932 commit 63b7482

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
@@ -103,7 +103,7 @@ resource "aws_rds_cluster" "this" {
103103
}
104104

105105
dynamic "s3_import" {
106-
for_each = var.s3_import != null ? [var.s3_import] : []
106+
for_each = var.s3_import != null && !local.is_serverless ? [var.s3_import] : []
107107
content {
108108
source_engine = "mysql"
109109
source_engine_version = s3_import.value.source_engine_version

0 commit comments

Comments
 (0)