CDLUC3 / CDLUC3/uc3-aws-cli

uc3 ssm functions are sort of working and not working

Open
#21 0 comments 0 reactions 1 assignee View on GitHub

@ashleygould is already working on this.

Since Jul 6, 2023.

Dominant language
Shell
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

My hope for these functions was that they would be universally accessible to all users on all of our servers.

Am I now seeing an error that relates to the python virtual environment?

I think this is a new bug. It has swallowed up a couple hours of my day today.

bash-4.2$ get_ssm_value_by_name batch/email
+ get_ssm_value_by_name batch/email
+ check_ssm_root
+ '[' /uc3/mrt/dev/ ']'
+ '[' /uc3/mrt/dev/ ']'
+ P=batch/email
+ SSMPATH=/uc3/mrt/dev/batch/email
++ aws ssm get-parameter --name /uc3/mrt/dev/batch/email --region us-west-2
++ jq -r .Value
++ jq -r .Parameter
+ val='marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu'
+ '[' marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu ']'
bash: [: too many arguments
+ die 'Parameter /uc3/mrt/dev/batch/email not found'
+ echo 'Parameter /uc3/mrt/dev/batch/email not found'
Parameter /uc3/mrt/dev/batch/email not found
+ false
+ echo marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu
marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu
++ _pyenv_virtualenv_hook
++ local ret=0
++ '[' -n '' ']'
+++ pyenv sh-activate --quiet
+++ local command
+++ command=sh-activate
+++ '[' 2 -gt 0 ']'
+++ shift
+++ case "$command" in
+++ command pyenv sh-activate --quiet
+++ pyenv sh-activate --quiet
+++ true
++ eval false
+++ false
++ true
++ return 0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.