We get a problem with using the installation notebook. We get an error during the second section of the last part of the notebook when doing the installation.
we are running this section
%%capture
%%bash
export PATH="$PATH:~/.tfenv/bin"
export PATH="/root/.local/bin:$PATH"
export PATH="$PATH:$(which gcloud)"
export GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json
TERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform
terraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve
and getting this back
CalledProcessError Traceback (most recent call last)
in <cell line: 0>()
----> 1 get_ipython().run_cell_magic('bash', '', 'export PATH="$PATH:~/.tfenv/bin"\nexport PATH="/root/.local/bin:$PATH"\nexport PATH="$PATH:$(which gcloud)"\nexport GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json\nTERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform\nterraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve\n')
4 frames
in shebang(self, line, cell)
/usr/local/lib/python3.11/dist-packages/IPython/core/magics/script.py in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
--> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):
CalledProcessError: Command 'b'export PATH="$PATH:~/.tfenv/bin"\nexport PATH="/root/.local/bin:$PATH"\nexport PATH="$PATH:$(which gcloud)"\nexport GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json\nTERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform\nterraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve\n'' returned non-zero exit status 1.
We get a problem with using the installation notebook. We get an error during the second section of the last part of the notebook when doing the installation.
we are running this section
@title
%%capture
%%bash
export PATH="$PATH:~/.tfenv/bin"
export PATH="/root/.local/bin:$PATH"
export PATH="$PATH:$(which gcloud)"
export GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json
TERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform
terraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve
and getting this back
CalledProcessError Traceback (most recent call last)
in <cell line: 0>()
----> 1 get_ipython().run_cell_magic('bash', '', 'export PATH="$PATH:~/.tfenv/bin"\nexport PATH="/root/.local/bin:$PATH"\nexport PATH="$PATH:$(which gcloud)"\nexport GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json\nTERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform\nterraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve\n')
4 frames
in shebang(self, line, cell)
/usr/local/lib/python3.11/dist-packages/IPython/core/magics/script.py in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
--> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):
CalledProcessError: Command 'b'export PATH="$PATH:~/.tfenv/bin"\nexport PATH="/root/.local/bin:$PATH"\nexport PATH="$PATH:$(which gcloud)"\nexport GOOGLE_APPLICATION_CREDENTIALS=/content/.config/application_default_credentials.json\nTERRAFORM_RUN_DIR=$(pwd)/infrastructure/terraform\nterraform -chdir="${TERRAFORM_RUN_DIR}" apply -target=module.data_store -auto-approve\n'' returned non-zero exit status 1.