Feed of one EC2 Availability Zone

Reply
L1 Bithead

Feed of one EC2 Availability Zone

Is it possible to filter down the Amazon EC2 feed to specific availability zones (just us-east-1 or eu-west-1)?

L7 Applicator

Re: Feed of one EC2 Availability Zone

Yes, you can create a new prototype of output node and filter the incoming indicators based on the aws_region attribute.

 

Phase1 - create the prototype

- go to CONFIG

- click on the browse prototypes button

- search for stdlib.feedHCWithValue and click on it

- click on the NEW button

- give to the new prototype a name and copy & paste the following config in the text area

 

infilters:
- name: accept withdraws
  conditions:
  - __method == 'withdraw'
  actions:
  - accept
- name: accept eu-west-1
  actions:
  - accept
  conditions:
  - aws_region == 'eu-west-1'
  - confidence > 75
- name: accept us-east-1
  actions:
  - accept
  conditions:
  - aws_region == 'us-east-1'
  - confidence > 75
- name: drop all  
  actions:
  - drop
store_value: true

- click on OK

 

Phase2 - Use the new prototype

- go to CONFIG

- click on browse prototypes button

- select the prototype you have created in Phase 1

- click CLONE

- select as input the AWS Miner or an aggregator

 

luigi

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!