GoogleCloudPlatform / application-integration-management-toolkit

This tool lets you interact with Application Integration, Integration Connectors or Apigee Integration/Connector APIs. The tool lets you manage (create, del, get, list) integrations, connections etc.
Apache License 2.0
22 stars 16 forks source link

Unable to provide Config variable for pub sub trigger service account #249

Closed Sarmistha91 closed 4 months ago

Sarmistha91 commented 4 months ago

Tried below approaches to add the same -

The integration folder contains a json file (which is extracted from server) which contains a different CONFIG_pubSubSA (for lower env). While publishing, the integration still picks up the contents of the json file and not getting replaced by the value defined in the file config.json under folder config-variables

Failed with error - { "error": { "code": 400, "message": "Failed while deploying Cloud Pubsub Trigger for integration cicd-dev-test-intergration. Reason: Necessary roles might be missing for Cloud Pub/Sub Trigger. For more information, see (https://cloud.google.com/application-integration/docs/configure-pubsub-trigger#iam-roles).".%22), "status": "FAILED_PRECONDITION" } }

ssvaidyanathan commented 4 months ago

@Sarmistha91 - which version of integrationcli are you on? Please provide that as well when opening an issue so that we can better assist

Sarmistha91 commented 4 months ago

@ssvaidyanathan - Version used - v0.76.0

We were able to override the values using overrides.json but we want to explore the option of Config variable as well to be able to update the details directly in config files without disturbing the integration.json file.

ssvaidyanathan commented 4 months ago

@Sarmistha91 - you should use the "scaffold" option that will pull everything including the overrides and config variables.

srinandan commented 4 months ago

It appears these issues are resolved. I'm closing them. If that's not the case, reopen it with the information @ssvaidyanathan asked for.