I'm trying to use a Lambda authoriser with the AppSync module for Terraform.
Here's my current terraform
module "appsync" {
source = "terraform-aws-modules/appsync/aws"
name = "api-appsync-${var.region}-${var.stage_name}"
schema = file("modules/appsync/schema.graphql")
api_keys = {
default = null # such key will expire in 7 days
}
additional_authentication_provider = {
iam = {
authentication_type = "AWS_IAM"
}
}
...
}
I have the lambda authoriser working but currently have to update the AppSync settings manually after each deployment.