unable to set variable in case statement bash

Viewed 14059

I'm trying to set a variable based on a bunch of input conditions. Here's a small sample of the code:

#!/bin/bash
INSTANCE_SIZE=""
case "$1" in
   "micro")
     $INSTANCE_SIZE="t1.micro"
     ;;
   "small")
     $INSTANCE_SIZE="m1.small"

     ;;
esac
echo $INSTANCE_SIZE

When I run the script with the -ex switch and specify the proper argument:

+ case "$1" in
+ =m1.small
./provision: line 19: =m1.small: command not found
1 Answers
Related