aws equivalent of awless commands
Is there a possibility that we can get an aws CLI equivalent of awless commands ?
For example,
awless list buckets = aws s3 ls or equivalent.
or,
awless list buckets --print aws-cli
Output:
aws s3 ls
Not sure to get it. Are you talking about outputting in the AWS CLI specific default format (which is a kind of JSON)?
What are you trying to achieve? Any specific use cases in mind with this format?
To answer your question though that is not something we would implement.
Let's say, we are creating an alarm using awless:
awless create alarm \
namespace=AWS/EC2 \
dimensions=AutoScalingGroupName:instancesScalingGroup \
evaluation-periods=2 \
metric=CPUUtilization \
name=scaleinAlarm \
operator=GreaterThanOrEqualToThreshold \
period=300 \
statistic-function=Average \
threshold=75
Adding a --output aws-cli or something similar would result in aws cli command output instead of creating an alarm, which can be used in scripts where awless might not be allowed. For example:
aws cloudwatch put-metric-alarm \
--alarm-name scaleinAlarm \
--actions-enabled \
--alarm-actions "$SNS_ARN" \
--metric-name CPUUtilization \
--namespace AWS/EC2 \
--statistic Average \
--dimensions AutoScalingGroupName:instancesScalingGroup \
--period 300 \
--unit Percent \
--evaluation-periods 2 \
--threshold 75 \
--comparison-operator GreaterThanOrEqualToThreshold \
--treat-missing-data missing
Ok I see your point, unfortunately we will not go down that road with awless.
Which context are your referring to when you say that awless might not be allowed/usable in scripts?