- gcloud SDK
- Install integrationcli
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
- clone this repo
- create a Pub/Sub topic -
<prefix>-appintlab
- update the topic_id in the prefix-appintlab-pubsub-connector.json and the connection_name in the overrides.json
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