Closed darlanmoraes closed 2 weeks ago
appsync-merged-api usage:
module "appsync_merged_api" { source = "../appsync-merged-api" domain = { zone = "example.com" name = "graphql" cert = "arn:aws:acm..." } authentication = [{ priority = "principal" cognito = { user_pool = "us-east-1_..." } }, { priority = "secondary" lambda = { arn = "arn:aws:lambda..." regex = "(?i)^bearer\\s+(.+)" } }] }
appsync-merge usage:
module "appsync" { source = "../appsync-merge" graphql = { schema = file("schema.graphql") target = { lambda = "arn:aws:lambda..." merge = "arn:aws:appsync..." } resolvers = [{ type = "Mutation" field = "MyMutation" }] } authentication = [{ priority = "principal" cognito = { user_pool = "us-east-1_..." } }, { priority = "secondary" lambda = { arn = "arn:aws:lambda..." regex = "(?i)^bearer\\s+(.+)" } }] }
appsync-merged-api usage:
appsync-merge usage: