services:
  - type: 'org.apache.brooklyn.entity.stock.BasicApplication:1.1.0-SNAPSHOT'
    name: AWS AppRegistry Exporter
    brooklyn.policies:
      - type: 'cmdb-exporter-policy'
        brooklyn.config:
          period: 10s
          command: cat - > $AWS_FILE && amp-cmdb appregistry --publish --profile amp-aws --input $AWS_FILE
          env:
            AWS_FILE: /tmp/aws.publish.json
