22 lines
646 B
Bash
Executable File
22 lines
646 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# NOTE: %1 is the user being authorized. However, we'll make this only for
|
|
# the primary user
|
|
|
|
# Accomodate for local install
|
|
PATH=$HOME/.local/bin:$PATH
|
|
|
|
# This is much slower than hitting DDB, so while it will work, we'll use
|
|
# our codecommit -> DDB lambda function and pull direct from DDB. Also helps
|
|
# with codecommit user count...
|
|
|
|
# aws codecommit get-file \
|
|
# --repository-name authorized_keys \
|
|
# --file-path authorized_keys \
|
|
# --query 'fileContent' \
|
|
# --cli-read-timeout 1 \
|
|
# --cli-connect-timeout 1 \
|
|
# --output text |base64 -d
|
|
|
|
aws dynamodb scan --table-name key --query 'Items[0].key.S' --output text
|