创建弹性搜索域时,如何在cloudformation中将awsognito用于kibana?

时间:2019-05-23 06:09:11

标签: amazon-cloudformation amazon-cognito aws-elasticsearch

我正在编写云形成脚本以创建弹性搜索域 但是从文档中,我找不到将kognito与kibana结合使用的方法。如何包含它?

我尝试使用下面的脚本来创建。(此处忽略了参数和角色)

  ElasticsearchDomain: 
    Type: AWS::Elasticsearch::Domain
    Properties:
      DomainName: !Sub "${ElasticsearchDomainName}" #getting Name From Parameter
      ElasticsearchVersion: "6.5"                   #specify version
      ElasticsearchClusterConfig: 
        InstanceCount: 1
        InstanceType: "m4.large.elasticsearch"     #instance type
      EBSOptions: 
        EBSEnabled: true
        Iops: 0
        VolumeSize: 10
        VolumeType: "gp2"
      SnapshotOptions: 
        AutomatedSnapshotStartHour: 0
      AccessPolicies:                        # who can acess & their permissions
        Version: "2012-10-17"
        Statement: 
          - Effect: "Allow"
            Principal:
              # AWS: !Sub "arn:aws:iam::${AWS::AccountId}:root"  #root account
              AWS: "*"  #All account
            Action: "es:*"
            Resource: !Sub "arn:aws:es:${AWS::Region}:${AWS::AccountId}:domain/${ElasticsearchDomainName}/*"
      AdvancedOptions:
        rest.action.multi.allow_explicit_index: 'true'

因此,如上所示,我应该在哪里包含Cognito?

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

不幸的是,目前无法通过云形成添加Kibana Cognito身份验证。您将必须通过控制台手动进行操作。