When calling this module multiple times in one execution to create packages with the same source_path, zip-archives will be corrupted due to concurrent writes into the same file. If you need to have different filenames for the same content you can specify extra string argument hash_extra. Hash of zip-archive created with the same content of the files is always identical which prevents unnecessary force-updates of the Lambda resources unless content modifies. The main functions of the script are to generate a filename of zip-archive based on the content of the files, verify if zip-archive has been already created, and create zip-archive only when it is necessary (during apply, not plan). Make sure, Python 3.6 or newer is installed. Package.py is Python script which does it. This is one of the most complicated part done by the module and normally you don't have to know internals. Source = "terraform-aws-modules/lambda/aws "Ĭreate = false # to disable all resourcesĬreate_package = false # to control build package processĬreate_function = false # to control creation of the Lambda Function and related resourcesĬreate_layer = false # to control creation of the Lambda Layer and related resourcesĬreate_role = false # to control creation of the IAM role and policies required for Lambda FunctionĪttach_async_event_policy = false #. Lambda Permissions should be specified to allow certain resources to invoke Lambda Function. See examples/complete for more information. assume_role_policy_statements - Map of maps to define IAM statements which will be generated as IAM policy for assuming Lambda Function role (trust relationship).Requires attach_policy_statements = true. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |