appint-error-catcher

Pre-req

curl -L https://raw.githubusercontent.com/GoogleCloudPlatform/application-integration-management-toolkit/main/downloadLatest.sh | sh -
  • Run integrationcli --version to make sure its installed correctly
  • A GCP Project with Application Integration and Integration Connectors already enabled
  • Roles to create/publish Integrations and create connectors

Steps

export PREFIX=<prefix>

and then

sed -i "s/PREFIX/$PREFIX/g" ./dev/connectors/prefix-appintlab-pubsub-connector.json
sed -i "s/PREFIX/$PREFIX/g" ./dev/overrides/overrides.json
  • rename prefix-appintlab-pubsub-connector.json to use your prefix
mv ./dev/connectors/prefix-appintlab-pubsub-connector.json ./dev/connectors/${PREFIX}-appintlab-pubsub-connector.json
  • Set the Integration Preferences
token=$(gcloud auth print-access-token)
region=<region>
project=<project>
integrationcli preferences set -r $region -p $project -t $token
  • Create the Integration and Connectors using the integrationcli apply command
integrationcli integrations apply -f . -e dev --wait=true
  • Once the "ErrorCatcher" Integration is created and published, click "Test"
  • In a terminal, run the following command to see if the message is published to your topic
gcloud pubsub subscriptions pull $PREFIX-appintlab-sub --auto-ack --project=$project