update get_authorized_keys to look at ddb table

This commit is contained in:
Emil Lerch 2019-08-02 12:33:47 -07:00
parent 0db536fb87
commit 811730b737
Signed by: lobo
GPG Key ID: CEC5F37C1BE5A481

View File

@ -6,10 +6,16 @@
# Accomodate for local install
PATH=$HOME/.local/bin:$PATH
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
# 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