We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd08ec commit d05e37eCopy full SHA for d05e37e
1 file changed
tuts/141-aws-savingsplans-gs/aws-savingsplans-gs.sh
@@ -1,6 +1,7 @@
1
#!/bin/bash
2
WORK_DIR=$(mktemp -d); exec > >(tee -a "$WORK_DIR/sp.log") 2>&1
3
-export AWS_DEFAULT_REGION=us-east-1; echo "Region: us-east-1"
+REGION=us-east-1 # Savings Plans requires us-east-1
4
+export AWS_DEFAULT_REGION="$REGION"; export AWS_REGION="$REGION"; echo "Region: $REGION"
5
echo "Step 1: Describing savings plans"
6
aws savingsplans describe-savings-plans --query 'savingsPlans[:5].{Id:savingsPlanId,Type:savingsPlanType,State:state,Commitment:commitment}' --output table 2>/dev/null || echo " No savings plans found"
7
echo "Step 2: Describing savings plan rates"
0 commit comments