Skip to content

Commit 9b3b0ab

Browse files
committed
Removed policy_path, added quiet_archive_local_exec
1 parent d1f9616 commit 9b3b0ab

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,11 +824,11 @@ No modules.
824824
| <a name="input_policy_json"></a> [policy\_json](#input\_policy\_json) | An additional policy document as JSON to attach to the Lambda Function role | `string` | `null` | no |
825825
| <a name="input_policy_jsons"></a> [policy\_jsons](#input\_policy\_jsons) | List of additional policy documents as JSON to attach to Lambda Function role | `list(string)` | `[]` | no |
826826
| <a name="input_policy_name"></a> [policy\_name](#input\_policy\_name) | IAM policy name. It override the default value, which is the same as role\_name | `string` | `null` | no |
827-
| <a name="input_policy_path"></a> [policy\_path](#input\_policy\_path) | Path of policies to that should be added to IAM role for Lambda Function | `string` | `null` | no |
828827
| <a name="input_policy_statements"></a> [policy\_statements](#input\_policy\_statements) | Map of dynamic policy statements to attach to Lambda Function role | `any` | `{}` | no |
829828
| <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 |
830829
| <a name="input_publish"></a> [publish](#input\_publish) | Whether to publish creation/change as new Lambda Function Version. | `bool` | `false` | no |
831830
| <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 |
831+
| <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` | `true` | no |
832832
| <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 |
833833
| <a name="input_recursive_loop"></a> [recursive\_loop](#input\_recursive\_loop) | Lambda function recursion configuration. Valid values are Allow or Terminate. | `string` | `null` | no |
834834
| <a name="input_region"></a> [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the region set in the provider configuration | `string` | `null` | no |

package.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ resource "null_resource" "archive" {
7070
"--timestamp", data.external.archive_prepare[0].result.timestamp
7171
]
7272
command = data.external.archive_prepare[0].result.build_plan_filename
73+
quiet = var.quiet_archive_local_exec
7374
}
7475

7576
depends_on = [local_file.archive_plan]

variables.tf

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -590,14 +590,6 @@ variable "attach_policies" {
590590
default = false
591591
}
592592

593-
# TODO: DEPRECATED: Remove this variable in the next major version
594-
# tflint-ignore: all
595-
variable "policy_path" {
596-
description = "Path of policies to that should be added to IAM role for Lambda Function"
597-
type = string
598-
default = null
599-
}
600-
601593
variable "number_of_policy_jsons" {
602594
description = "Number of policies JSON to attach to IAM role for Lambda Function"
603595
type = number
@@ -812,6 +804,12 @@ variable "trigger_on_package_timestamp" {
812804
default = true
813805
}
814806

807+
variable "quiet_archive_local_exec" {
808+
description = "Whether to disable archive local execution output"
809+
type = bool
810+
default = true
811+
}
812+
815813
############################################
816814
# Lambda Advanced Logging Settings
817815
############################################

wrappers/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ module "wrapper" {
9494
policy_json = try(each.value.policy_json, var.defaults.policy_json, null)
9595
policy_jsons = try(each.value.policy_jsons, var.defaults.policy_jsons, [])
9696
policy_name = try(each.value.policy_name, var.defaults.policy_name, null)
97-
policy_path = try(each.value.policy_path, var.defaults.policy_path, null)
9897
policy_statements = try(each.value.policy_statements, var.defaults.policy_statements, {})
9998
provisioned_concurrent_executions = try(each.value.provisioned_concurrent_executions, var.defaults.provisioned_concurrent_executions, -1)
10099
publish = try(each.value.publish, var.defaults.publish, false)
101100
putin_khuylo = try(each.value.putin_khuylo, var.defaults.putin_khuylo, true)
101+
quiet_archive_local_exec = try(each.value.quiet_archive_local_exec, var.defaults.quiet_archive_local_exec, true)
102102
recreate_missing_package = try(each.value.recreate_missing_package, var.defaults.recreate_missing_package, true)
103103
recursive_loop = try(each.value.recursive_loop, var.defaults.recursive_loop, null)
104104
region = try(each.value.region, var.defaults.region, null)

0 commit comments

Comments
 (0)