Jenkins Job that calls a Python script to add Branch Protection Rules, Codeowners files etc to GitHub repos in an Organisation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_lambda_function" "my_lambda" { | |
| for_each = var.lambdas | |
| filename = data.archive_file.bootstrap_lambda.output_path | |
| function_name = each.value.lambda_name | |
| role = aws_iam_role.lambda_exec.arn | |
| handler = each.value.lambda_entrypoint | |
| runtime = each.value.lambda_runtime | |
| source_code_hash = data.archive_file.bootstrap_lambda.output_base64sha256 | |
| memory_size = each.value.lambda_memory_size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "lambdas" { | |
| description = "Map of the Lambdas" | |
| type = map(object({ | |
| lambda_name = string | |
| lambda_entrypoint = string | |
| timeout = optional(number) | |
| lambda_runtime = optional(string) | |
| lambda_memory_size = optional(number) | |
| })) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "lambdas" { | |
| description = "Map of the Lambdas" | |
| type = map(object({ | |
| lambda_name = string | |
| lambda_entrypoint = string | |
| timeout = optional(number, 900) | |
| lambda_runtime = optional(string, "python3.7") | |
| lambda_memory_size = optional(number, 256) | |
| })) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "lambdas" { | |
| description = "Map of the Lambdas" | |
| type = map(object({ | |
| lambda_name = string | |
| lambda_entrypoint = string | |
| timeout = optional(number) | |
| lambda_runtime = optional(string) | |
| lambda_memory_size = optional(number) | |
| })) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Being able to search new books", | |
| "actions": [ | |
| { | |
| "name": "Web Service checks with ID Service to ensure User is allowed to search", | |
| "dependencies": ["ID Service"], | |
| "slos": [ | |
| { | |
| "name": "ID Service", | |
| "type": "Availability", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| experiments = [module_variable_optional_attrs] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data "archive_file" "bootstrap_lambda" { | |
| type = "zip" | |
| output_path = "${path.module}/lambda_function_payload.zip" | |
| source { | |
| content = "hello" | |
| filename = "bootstrap.txt" | |
| } | |
| } |