---
RecipeFormatVersion: "2020-01-25"
ComponentName: "$component_name"
ComponentVersion: "$component_version_number"
ComponentDescription: Component to publish detection(s) from rangefinder device(s)
ComponentPublisher: Amazon Web Services, Inc.
ComponentConfiguration:
  DefaultConfiguration:
    accessControl:
      aws.greengrass.ipc.mqttproxy:
        "$component_name:pub:0":
          policyDescription: Allows access to publish to IoT Core topic(s).
          operations:
            - aws.greengrass#PublishToIoTCore
          resources:
            - "*"
      aws.greengrass.ipc.pubsub:
        "$component_name:pubsub:1":
          policyDescription: Allows access to subscribe to all topics.
          operations:
            - aws.greengrass#PublishToTopic
          resources:
            - "*"
Manifests:
  - Platform:
      os: linux
    Lifecycle:
      Run:
        RequiresPrivilege: true
        Setenv:
          PYTHONPATH: "{artifacts:decompressedPath}/$component_name/artifacts"
        Script: |
          python3 {artifacts:decompressedPath}/$component_name/artifacts/app.py
    Artifacts:
      - URI: $s3_path/$component_name/$component_version_number/$artifacts_zip_file_name.zip
        Unarchive: ZIP