English 中文(简体)
如何确定 MongoDB 摘自Mongo DB AWS 活动Bridge Trigger
原标题:How to identify MongoDB collection name from MongoDB AWS EventBridge Trigger

我设立了2个Mongo 亚洲开发银行负责从一个Mongo集群收集2份,并从另一个组收集1份。 因此,共有3个触发点。 我使用了AWS 。 • 向AWS发送触发事件的桥梁

Here are the Event Bridges that were created as seen from the AWS console enter image description here

我的问题是,我如何确定其中的收集和分组属于。 例如,如果我只知道名单上有1个触发点,但当我开始为多重收集创造触发点时,问题是问题。

http://www.un.org/Depts/DGACM/index_chinese.htm

Mongo Forum thread

问题回答

在AWS活动桥规则ARN中,“61d2ac6f624571ca88cfd71a”的识别符号没有提供有关相关收集名称或集群的信息。 这似乎是具体触发因素或规则的独特识别特征。

为了确定与每个触发点相关的收集和分组,您在创建触发点时可能需要采用命名公约或文件战略。 以下是一些建议:

1-《最后公约》:

  • When creating triggers, include the collection and cluster information in the rule name.
  • Example: trigger_collection1_cluster1, trigger_collection2_cluster1, trigger_collection3_cluster2.

规则说明中的元数据:

  • When creating the rule, add metadata in the rule description that includes information about the associated collection and cluster.
  • Example: yaml

细则名称:Trigger1

说明:收集:1,组:1

3- 使用:

  • AWS resources support tagging. You can add custom tags to your Event Bridge rules, including information about the associated collection and cluster.
  • Example: makefile

Tag: Collection=Collection1

Tag:group=Cluster1

4-文件:

  • Maintain a separate document or database that maps trigger identifiers to collections and clusters.
  • Example: yaml

Trigger ID: 61d2ac6f624571ca88cfd71a

Collection: Collection1

分组:

选择最适合您工作流程的方法,并为您的设置提供管理和确定触发因素的必要信息。 在触发因素增加时,必须制定一致和有文件记载的办法,避免混乱。





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签