Hello!
I have a Datastream problem that never happened to me before. Hoping someone knows how to fix.
My projects are part of organisation. I have all permissions neeed.
When attempting to create any Datastream connection profile regardless if source or destination, it consistently fails with:
I tried to create a connection profile using
Getting always the same error.
Key Findings from Troubleshooting:
1. The Datastream agent service account is not being created:
2. All necessary permissions are in place:
3. Required APIs are enabled:
I have a feeling that there is something to do with gcp-sa-datastream.iam.gserviceaccount.com not being created.
Anyone has ideas where its all going wrong?
Solved! Go to Solution.
Found a solution.
You can create the service account using CLI:
```
gcloud beta services identity create --service=datastream.googleapis.com --project=<project_name>
```
Hey I am having the same issue, did you find a solution?
I also get the same error from tokyo
Found a solution.
For some reason, I'm not seeing the option to create the Datastream service account. I don't have a VPC setup in the project, so I think this may only work if you have a VPC in the project.
Datastream service account gets created when you enable apis usually. That's the whole issue here that gcp failed to provision one so Datastrem interface is struggling to create a resource because it doesn't exist.
Enable your api first. You might not have the same problem at all. Otherwise you can just enable vpc in your project. Don't have to use it
This doesn't work for me, I don't have that option.
Same issue here as well.
You can create the service account using CLI:
```
gcloud beta services identity create --service=datastream.googleapis.com --project=<project_name>
```
That's interesting. Thanks for sharing.
Does this create actual datastream service agent as opposed to service account?
Thanks! That works.
That worked for me!