Skip to content

feat: Added allow quiet output option #680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ No modules.
| <a name="input_provisioned_concurrent_executions"></a> [provisioned\_concurrent\_executions](#input\_provisioned\_concurrent\_executions) | Amount of capacity to allocate. Set to 1 or greater to enable, or set to 0 to disable provisioned concurrency. | `number` | `-1` | no |
| <a name="input_publish"></a> [publish](#input\_publish) | Whether to publish creation/change as new Lambda Function Version. | `bool` | `false` | no |
| <a name="input_putin_khuylo"></a> [putin\_khuylo](#input\_putin\_khuylo) | Do you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo! | `bool` | `true` | no |
| <a name="input_quiet_archive_local_exec"></a> [quiet\_archive\_local\_exec](#input\_quiet\_archive\_local\_exec) | Whether to disable archive local execution output. | `bool` | `false` | no |
| <a name="input_recreate_missing_package"></a> [recreate\_missing\_package](#input\_recreate\_missing\_package) | Whether to recreate missing Lambda package if it is missing locally or not | `bool` | `true` | no |
| <a name="input_recursive_loop"></a> [recursive\_loop](#input\_recursive\_loop) | Lambda function recursion configuration. Valid values are Allow or Terminate. | `string` | `null` | no |
| <a name="input_replace_security_groups_on_destroy"></a> [replace\_security\_groups\_on\_destroy](#input\_replace\_security\_groups\_on\_destroy) | (Optional) When true, all security groups defined in vpc\_security\_group\_ids will be replaced with the default security group after the function is destroyed. Set the replacement\_security\_group\_ids variable to use a custom list of security groups for replacement instead. | `bool` | `null` | no |
Expand Down
6 changes: 5 additions & 1 deletion examples/build-package/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ module "package_dir_pip_dir" {
pip_requirements = "${path.module}/../fixtures/python-app1/requirements.txt"
}]
artifacts_dir = "${path.root}/builds/package_dir_pip_dir/"

quiet_archive_local_exec = true
}

# Create zip-archive of a single directory where "poetry export" & "pip install --no-deps" will also be executed (using docker)
Expand Down Expand Up @@ -82,6 +84,8 @@ module "package_src_poetry" {
}
]
artifacts_dir = "${path.root}/builds/package_src_poetry/"

quiet_archive_local_exec = true
}

# Create zip-archive of a src directory where "poetry export" & "pip install --no-deps" will also be executed (using docker)
Expand Down Expand Up @@ -255,7 +259,7 @@ module "npm_package_with_commands_and_patterns" {
runtime = "nodejs18.x"
source_path = [
{
path = "${path.module}/../fixtures/node-app"
path = "${path.module}/../fixtures/nodejs14.x-app1"
commands = [
"[ ! -d node_modules ] || mv node_modules node_modules_temp",
"npm install --production",
Expand Down
102 changes: 102 additions & 0 deletions examples/fixtures/nodejs14.x-app1/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ resource "null_resource" "archive" {
"--timestamp", data.external.archive_prepare[0].result.timestamp
]
command = data.external.archive_prepare[0].result.build_plan_filename
quiet = var.quiet_archive_local_exec
}

depends_on = [local_file.archive_plan]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,12 @@ variable "trigger_on_package_timestamp" {
default = true
}

variable "quiet_archive_local_exec" {
description = "Whether to disable archive local execution output."
type = bool
default = false
}

############################################
# Lambda Advanced Logging Settings
############################################
Expand Down
1 change: 1 addition & 0 deletions wrappers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module "wrapper" {
provisioned_concurrent_executions = try(each.value.provisioned_concurrent_executions, var.defaults.provisioned_concurrent_executions, -1)
publish = try(each.value.publish, var.defaults.publish, false)
putin_khuylo = try(each.value.putin_khuylo, var.defaults.putin_khuylo, true)
quiet_archive_local_exec = try(each.value.quiet_archive_local_exec, var.defaults.quiet_archive_local_exec, false)
recreate_missing_package = try(each.value.recreate_missing_package, var.defaults.recreate_missing_package, true)
recursive_loop = try(each.value.recursive_loop, var.defaults.recursive_loop, null)
replace_security_groups_on_destroy = try(each.value.replace_security_groups_on_destroy, var.defaults.replace_security_groups_on_destroy, null)
Expand Down
Loading