I found shell script missing in Tutorial

Hi there. I am shunsock.

I found syntax error in cloud composer document and want to notify Google Cloud Developer.
But, I do not know where to submit commit message (no repo?), then I decide to create post in community. If you know any location I should submit, Please tell me.

- [Quick Start](https://cloud.google.com/composer/docs/run-apache-airflow-dag#create_an_environment)

This script does not work since we need brackets and dollar before the first bracket.

 

# Get current project's project number
PROJECT_NUMBER=gcloud projects list \
  --filter="$(gcloud config get-value project)" \
  --format="value(PROJECT_NUMBER)" \
  --limit=1

# Add the Cloud Composer v2 API Service Agent Extension role
gcloud iam service-accounts add-iam-policy-binding \
    $PROJECT_NUMBER-compute@developer.gserviceaccount.com \
    --member serviceAccount:service-$PROJECT_NUMBER@cloudcomposer-accounts.iam.gserviceaccount.com \
    --role roles/composer.ServiceAgentV2Ext
...

 

 So, code following works.

 

PROJECT_NUMBER=$(gcloud projects list \
  --filter="$(gcloud config get-value project)" \
  --format="value(PROJECT_NUMBER)" \
  --limit=1)
...

 

 

Solved Solved
1 2 225
1 ACCEPTED SOLUTION

Hi @Shunsock ,

Thanks for reporting this issue. I've submitted a request internally to fix it.

View solution in original post

2 REPLIES 2

Hi @Shunsock ,

Thanks for reporting this issue. I've submitted a request internally to fix it.

Hello @kumards ,

Thank you for replying and share my post. I hope my commitment help someone. 👍