Skip to content

Commit adc2e3b

Browse files
committed
fixing tests errors
1 parent 8d91d21 commit adc2e3b

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed

data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333
# Getting RAM resource share ARN
3434
resource_share_arn = local.create_ram_resource_share ? aws_ram_resource_share.ram_resource_share[0].arn : try(var.ram_share.resource_share_arn, null)
3535
# Determining if the service network needs to be shared
36-
share_service_network = local.create_service_network && try(var.ram_share.share_service_network, true)
36+
share_service_network = local.config_ram_share ? local.create_service_network && try(var.ram_share.share_service_network, true) : false
3737
# Default of var.ram_share.share_services - if not defined, all the created services will be included
3838
share_services = try(var.ram_share.share_services, keys(var.services))
3939
# Move var.ram_share.principals from list(string) to map(string)

examples/target_groups/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ resource "aws_lambda_function" "lambda" {
7878

7979
data "archive_file" "python_lambda_package" {
8080
type = "zip"
81-
source_file = "./function.py"
81+
source_file = "${path.module}/function.py"
8282
output_path = "lambda_function.zip"
8383
}
8484

lambda_function.zip

275 Bytes
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)