gravicore / terraform-gravicore-modules

This is a collection of reusable Terraform modules for Gravicore's cloud automation platform.
https://gravicore.io
Apache License 2.0
8 stars 8 forks source link

GDEV-378: adding support for request configuration #394

Closed darlanmoraes closed 2 months ago

darlanmoraes commented 2 months ago

usage:

module "appsync" {
  graphql = {
    schema = var.graphql_schema
    target = {
      lambda = aws_lambda_function.default[0].arn
      merge  = var.appsync_merged_api_id
    }
    authentication = {
      type      = var.graphql_authentication_type
      user_pool = var.cognito_user_pool
    }
    resolvers = [{
      type  = "Mutation"
      field = "myMutation"
    }]
  }

  transform = {
    request = {
      type = "with-claims"
    }
  }
}