https://registry.terraform.io/modules/Xerris-Terraform-Modules/appsync-api/aws/latest
This is designed to bootstrap an Appsync API with the ability to add direct lambda resolvers
module "foe_api" {
source = "github.com/xerris/aws-modules//lambdaSourceAppsync"
name = "${var.env}-foe-api"
schema = file("schema.graphql")
env = var.env
region = var.region
account_id = var.account_id
ecr_name = "foe_base"
image_uri = var.image_tag
cognito_id = aws_cognito_user_pool.primarypool.id
resolvers = {
"JobQueryResolver" = {
description = "jobQuery"
type = "Query"
field = "getJob"
entrypoint = "laprairie.foe::laprairie.foe.Handlers.JobHandler::GetAllJobs"
}
}
}
No requirements.
Name | Version |
---|---|
aws | n/a |
Name | Source | Version |
---|---|---|
lambda_source | ./modules/lambda-appsync-resolver |
Name |
---|
aws_appsync_graphql_api |
aws_ecr_repository |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cognito_id | ID of Cognito -> Might Depricate and create cognito inside module later | any |
n/a | yes |
env | Environment of deployment | any |
n/a | yes |
image_uri | URI of image to run all lambdas from | any |
n/a | yes |
name | Name of API | any |
n/a | yes |
region | Region for cognito | string |
"us-east-1" |
no |
resolvers | Map of datasources to create | any |
{} |
no |
schema | File path of graphql schema | any |
n/a | yes |
No output.