module "apigw" { source = "../modules/apigw" providers = { aws = aws.aws } depends_on = [ module.lambda, module.sqs ] name = "AWSAPIGateway-g3" description = "..." lambda_function_arn = module.lambda["lambda"].lambda_function_arn lambda_function_name = module.lambda["lambda"].lambda_function_name lambda_source_arn = "arn:aws:execute-api:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}" role_arn = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/LabRole" # sqs_arn = "arn:aws:sqs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:AWS-SQS-g3" sqs_arn = "arn:aws:apigateway:${data.aws_region.current.name}:sqs:path/AWS-SQS-g3" tags = { name = "Api Gateway" } }