update get_authorized_keys to look at ddb table
This commit is contained in:
parent
0db536fb87
commit
811730b737
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user