mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 12:48:01 +00:00
[aws] Add funcs for ssm parameters
This commit is contained in:
parent
77edfff10e
commit
a39ac57061
@ -120,6 +120,20 @@ function aws_ssm_session_any {
|
|||||||
fi
|
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 {
|
function aws_cf {
|
||||||
local profile=$(_get_aws_profile)
|
local profile=$(_get_aws_profile)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user