Skip to content

Commit

Permalink
correct registry path
Browse files Browse the repository at this point in the history
  • Loading branch information
Plork committed Sep 17, 2024
1 parent 22bd1a1 commit d8ec6d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ locals {
module "lambda_role" {
count = length(compact([var.role_arn])) == 0 ? 1 : 0

source = "github.com/schubergphilis/terraform-aws-mcaf-role?ref=v0.4.0"
source = "schubergphilis/mcaf-role/aws"
version = "~> 0.4.0"

name = join("-", compact([var.role_prefix, "LambdaRole", var.name]))
create_policy = var.create_policy
permissions_boundary = var.permissions_boundary
Expand Down Expand Up @@ -132,7 +134,7 @@ resource "aws_lambda_function" "default" {
architectures = [var.architecture]
code_signing_config_arn = var.code_signing_config_arn
description = var.description
filename = var.s3_bucket == null ? local.filename : null
filename = var.s3_bucket == null || var.image_uri != null ? local.filename : null
image_uri = var.image_uri != null ? var.image_uri : null
function_name = var.name
handler = var.handler
Expand Down

0 comments on commit d8ec6d4

Please sign in to comment.