2019-07-16 00:28:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-07-16 17:55:52 +00:00
|
|
|
# NOTE: %1 is the user being authorized. However, we'll make this only for
|
|
|
|
# the primary user
|
|
|
|
|
2019-07-16 00:28:24 +00:00
|
|
|
# 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
|