Skip to content

Commit d72144e

Browse files
authored
Merge pull request #10 from gweecl/main
Add output for lambda version and gha role
2 parents 3fc6f4f + ff7c7f1 commit d72144e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: data.tf

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ data "aws_caller_identity" "current" {}
77
data "aws_region" "current" {}
88

99
data "aws_iam_policy_document" "update_lambda" {
10+
#checkov:skip=CKV_AWS_356: Read only
1011
statement {
1112
sid = "ReadLambda"
1213

Diff for: outputs.tf

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ output "lambda_function_name" {
88
value = module.lambda.lambda_function_name
99
}
1010

11+
output "lambda_function_version" {
12+
description = "Latest published version of Lambda Function"
13+
value = module.lambda.lambda_function_version
14+
}
15+
1116
# Cloudwatch Log Group
1217
output "lambda_cloudwatch_log_group_arn" {
1318
description = "Lambda Cloudwatch Log group"
@@ -35,6 +40,12 @@ output "lambda_role_unique_id" {
3540
value = module.lambda.lambda_role_unique_id
3641
}
3742

43+
# IAM Role for GHA
44+
output "lamda_gha_role_name" {
45+
description = "The crated role that can be assumed for the configured repository."
46+
value = try(module.lamda_gha[0].role.name, "")
47+
}
48+
3849
# For Lambda Edge and Cloudfront Integration
3950

4051
#For Lambda@Edge Association with cloudfront

0 commit comments

Comments
 (0)