Hi Members,
I was trying to deploy a shared flow using the CI/CD pipeline in this link, and the pipeline failed giving the following error:
[ERROR] "message": "shared flow \"internal-shared-flow\" belongs to space \"apigee-space\"",
[ERROR] "status": "PERMISSION_DENIED"
I made sure that the service account attached to the cloud build that is running this pipeline is a member of the space named "apigee-space", but it is still failing.
@ssvaidyanathan is it possible that you have seen such an issue?
Solved! Go to Solution.
@ahmad-mahafdhah - few things
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>2.5.2</version>
<apigee.space>${space}</apigee.space>
-Dapigee.space=${space}
So in your case, you need -Dapigee.space=apigee-space
@ahmad-mahafdhah - few things
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>2.5.2</version>
<apigee.space>${space}</apigee.space>
-Dapigee.space=${space}
So in your case, you need -Dapigee.space=apigee-space
Thank you @ssvaidyanathan , I have already tried to update the pom file and the cloudbuild.yaml before, but updating the version fixed the issue.
I just wanted to double check that this also applies to deploying API Proxies?
Thanks again.
@ahmad-mahafdhah - Glad its fixed.
Yes - it applies to proxies as well