From b015ce55dc652fe1d60e8e535dbba46d87fe2552 Mon Sep 17 00:00:00 2001 From: hirra-farooq Date: Wed, 22 Jul 2026 16:31:26 +0100 Subject: [PATCH 1/3] ENG-1292 make restore lambda arns available as outputs, and update docs --- CHANGELOG.md | 6 ++++++ modules/aws-backup-source/README.md | 8 +++++++- modules/aws-backup-source/outputs.tf | 10 ++++++++++ modules/aws-backup-source/version | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 978b9be..6f6239b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [v1.4.7] (2026-07-22) + +### Improvements + +- Output arns of copy-recovery-point lambda and restore-to-s3-lambda if created. + ## [v1.4.6] (2026-07-22) ### Features diff --git a/modules/aws-backup-source/README.md b/modules/aws-backup-source/README.md index 2a1c461..13cc678 100644 --- a/modules/aws-backup-source/README.md +++ b/modules/aws-backup-source/README.md @@ -95,6 +95,12 @@ No modules. ## Outputs -No outputs. +| Name | Description | Type | +| --- | --- | --- | +| [backup_role_arn](#output_backup_role_arn) | ARN of the backup role | `string` | +| [backup_vault_arn](#output_backup_vault_arn) | ARN of the backup vault | `string` | +| [backup_vault_name](#output_backup_vault_name) | Name of the backup vault | `string` | +| [lambda_copy_recovery_point_to_s3_arn](#output_lambda_copy_recovery_point_to_s3_arn) | ARN of the Lambda function that copies recovery points to S3. Only created when `lambda_copy_recovery_point_enable` is true. | `string` or `null` | n/a | no | +| [lambda_restore_to_s3_arn](#output_lambda_restore_to_s3_arn) | ARN of the Lambda function that restores to S3. Only created when `lambda_restore_to_s3_enable` is true. | `string` or `null`| diff --git a/modules/aws-backup-source/outputs.tf b/modules/aws-backup-source/outputs.tf index 96ab936..1d8db24 100644 --- a/modules/aws-backup-source/outputs.tf +++ b/modules/aws-backup-source/outputs.tf @@ -12,3 +12,13 @@ output "backup_vault_name" { value = aws_backup_vault.main.name description = "Name of the of the vault" } + +output "lambda_copy_recovery_point_to_s3_arn" { + value = var.lambda_copy_recovery_point_enable ? aws_lambda_function.lambda_copy_recovery_point_to_s3[0].arn : null + description = "ARN of the of the lambda function to copy recovery point to s3. Only created if lambda_copy_recovery_point_enable is true" +} + +output "lambda_restore_to_s3_arn" { + value = var.lambda_restore_to_s3_enable ? aws_lambda_function.lambda_restore_to_s3[0].arn : null + description = "ARN of the of the lambda function to restore to s3. Only created if lambda_restore_to_s3_enable is true" +} diff --git a/modules/aws-backup-source/version b/modules/aws-backup-source/version index 2aca8c0..ff1560e 100644 --- a/modules/aws-backup-source/version +++ b/modules/aws-backup-source/version @@ -1 +1 @@ -v1.4.6 +v1.4.7 From 81f43419d9ea69e2fb5ca3aff302d00ac13d3bce Mon Sep 17 00:00:00 2001 From: hirra-farooq Date: Thu, 23 Jul 2026 14:44:31 +0100 Subject: [PATCH 2/3] ENG-1292 use error safe lookup to handle when user chooses not to create lambdas --- modules/aws-backup-source/outputs.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/aws-backup-source/outputs.tf b/modules/aws-backup-source/outputs.tf index 1d8db24..1295b8c 100644 --- a/modules/aws-backup-source/outputs.tf +++ b/modules/aws-backup-source/outputs.tf @@ -14,11 +14,11 @@ output "backup_vault_name" { } output "lambda_copy_recovery_point_to_s3_arn" { - value = var.lambda_copy_recovery_point_enable ? aws_lambda_function.lambda_copy_recovery_point_to_s3[0].arn : null - description = "ARN of the of the lambda function to copy recovery point to s3. Only created if lambda_copy_recovery_point_enable is true" + value = try(aws_lambda_function.lambda_copy_recovery_point_to_s3[0].arn, null) + description = "ARN of the of the lambda function to copy recovery point to s3. Lambda only created if lambda_copy_recovery_point_enable is true" } output "lambda_restore_to_s3_arn" { - value = var.lambda_restore_to_s3_enable ? aws_lambda_function.lambda_restore_to_s3[0].arn : null - description = "ARN of the of the lambda function to restore to s3. Only created if lambda_restore_to_s3_enable is true" + value = try(aws_lambda_function.lambda_restore_to_s3[0].arn, null) + description = "ARN of the of the lambda function to restore to s3. Lambda only created if lambda_restore_to_s3_enable is true" } From d521c519cc9895aac4cbcf2f806cf816a9f9a73d Mon Sep 17 00:00:00 2001 From: hirra-farooq Date: Thu, 23 Jul 2026 14:49:39 +0100 Subject: [PATCH 3/3] ENG-1292 fix name --- modules/aws-backup-source/outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/aws-backup-source/outputs.tf b/modules/aws-backup-source/outputs.tf index 1295b8c..915541e 100644 --- a/modules/aws-backup-source/outputs.tf +++ b/modules/aws-backup-source/outputs.tf @@ -14,7 +14,7 @@ output "backup_vault_name" { } output "lambda_copy_recovery_point_to_s3_arn" { - value = try(aws_lambda_function.lambda_copy_recovery_point_to_s3[0].arn, null) + value = try(aws_lambda_function.lambda_copy_recovery_point[0].arn, null) description = "ARN of the of the lambda function to copy recovery point to s3. Lambda only created if lambda_copy_recovery_point_enable is true" }