Skip to content

Commit

Permalink
using format function to insert function name
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Jan 2, 2024
1 parent df809c6 commit 800dd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ data "aws_iam_policy_document" "instance-scheduler-lambda-function-policy" {
"logs:CreateLogGroup"
]
resources = [
format("arn:aws:logs:eu-west-2:%s:aws/lambda/${module.module_test.function_name}", data.aws_caller_identity.current.account_id)
format("arn:aws:logs:eu-west-2:%s:aws/lambda/%s", data.aws_caller_identity.current.account_id, module.module_test.lambda_function_name)
]
# resources = [
# "${aws_cloudwatch_log_group.fake.arn}"
Expand Down

0 comments on commit 800dd6d

Please sign in to comment.