From fbf524929d9db9fc8a41a5f5e1f096850c02d4ac Mon Sep 17 00:00:00 2001 From: Hope Aitchison Date: Tue, 19 Dec 2023 13:51:20 +0000 Subject: [PATCH] updating indexing --- outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index 586ada9..523bcdc 100644 --- a/outputs.tf +++ b/outputs.tf @@ -15,10 +15,10 @@ output "lambda_function_name" { output "vpc_security_group_ids" { description = "The VPC security groups the lambda function has been deployed into" - value = try(aws_lambda_function.this.vpc_config.security_group_ids, "") + value = try(aws_lambda_function.this.vpc_config[0].security_group_ids, "") } output "vpc_subnet_ids" { description = "The vpc subnet(s) the Lambda function has been deployed into" - value = try(aws_lambda_function.this.vpc_config.subnet_ids, "") + value = try(aws_lambda_function.this.vpc_config[0].subnet_ids, "") }