Issue with secret name's alian in google_cloud_run_service

In the documentation for google_cloud_run_service , the secret_key_ref block says that, for name argument, we could define an alias by using the form: :projects/{project-id|project-number}/secrets/.
This is used in case the secret is stored in another project.
Which is the correct procedure in this case for creating this alias?
If we just add the above mentioned prefix in the string name it is not working as we get error as name should only contain alphanumeric char, hypens or underscores…

1 Like