Giter VIP home page Giter VIP logo

amazon-elasticsearch-cognito-auth's Introduction

Amazon Elasticsearch Service with Amazon Cognito Auth

Get Started

Deploy the sample template from the AWS Serverless Application Repository:

cloudformation-launch-button

How to Buid & Deploy with AWS SAM

sam build --use-container --skip-pull-image
sam deploy --guided

How to modify mapping templates

This template has the custome resource to modify mapping templates. ModifyTemplateArn in the Outputs is Lambda Function for custome resource.

Resources:
  Elasticsearch:
    Type: AWS::Serverless::Application
    Properties:
      Location:
        ApplicationId: arn:aws:serverlessrepo:us-east-1:345513370492:applications/amazon-elasticsearch-cognito-auth
        SemanticVersion: 0.4.1
      Parameters:
        ElasticsearchVersion: 7.7
        CognitoAllowedEmailDomains: '*'

  TweetsTemplate:
    Type: Custom::ElasticsearchTemplate
    Version: 1.0
    Properties:
      ServiceToken: !GetAtt Elasticsearch.Outputs.ModifyTemplateArn
      Host: !GetAtt Elasticsearch.Outputs.Endpoint
      Body: '
        {
          "index_patterns": ["index-*"],
          "settings": {
            "number_of_shards": 4,
            "number_of_replicas": 1
          },
          "mappings": {
            "_source": {
              "enabled": true
            },
            "properties": {
              "text": {
                "type": "text"
              }
            }
          }
        }'

How to publish to AWS Serverless Application Repository

sam build

sam package --template-file .aws-sam/build/template.yaml \
  --output-template-file .aws-sam/build/packaged.yaml \
  --s3-bucket aws-sam-cli-managed-default-samclisourcebucket-xxxxxxxxxxxxx \
  --s3-prefix amazon-elasticsearch-cognito-auth

sam publish --template .aws-sam/build/packaged.yaml --region us-east-1

amazon-elasticsearch-cognito-auth's People

Contributors

mats16 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

amazon-elasticsearch-cognito-auth's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.