1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 08:08:00 +00:00

[aws] Add a (dirty) function for showing cloudfront distributions

This commit is contained in:
Daniel Carrillo 2020-02-06 19:48:22 +01:00
parent ac9843e2d4
commit bca85497f8

View File

@ -110,6 +110,14 @@ function aws_ssm_session_any {
fi
}
function aws_cf {
local profile=$(_get_aws_profile)
aws cloudfront list-distributions --profile $profile --output ${_aws_output} \
--query "DistributionList.Items[*].{id:Id,domain:DomainName,status:Status,
origin:Origins.Items[].DomainName | join(' ', @), aliases:Aliases.Items | join(' ', @)}"
}
# ~/.ssh/config
#
# Host i-*