[aws] Add funcs for ssm parameters

This commit is contained in:
Daniel Carrillo 2022-10-05 19:37:22 +02:00
parent 77edfff10e
commit a39ac57061
1 changed files with 14 additions and 0 deletions

View File

@ -120,6 +120,20 @@ function aws_ssm_session_any {
fi
}
function aws_ssm_parameters {
local profile=$(_get_aws_profile)
aws ssm describe-parameters --profile $profile --output ${_aws_output} \
--query 'Parameters[].[Name,Type]'
}
function aws_ssm_get_parameter {
local profile=$(_get_aws_profile)
local parameter=$1
aws ssm get-parameter --profile $profile --output text \
--name $parameter --with-decryption --query "Parameter.Value"
}
function aws_cf {
local profile=$(_get_aws_profile)