Skip to content

Commit

Permalink
Now checking for aws cli only in aws cli specific commands
Browse files Browse the repository at this point in the history
  • Loading branch information
benrady committed Feb 9, 2016
1 parent 313d9f8 commit 97f0c71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sspa
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ action=${1:-"help"}
cd "$root_dir"

check_python
check_aws

case "$action" in
server)
Expand All @@ -288,11 +287,13 @@ case "$action" in
;;

deploy_bundle)
check_aws
build_bundle
deploy_bundle
;;

create_bucket)
check_aws
if [[ $# -eq 2 ]]; then
create_s3_bucket ${2}
webify_bucket ${2}
Expand All @@ -303,6 +304,7 @@ case "$action" in
;;

deploy_bucket)
check_aws
if [[ $# -eq 2 ]]; then
deploy_s3_bucket ${2}
else
Expand All @@ -312,6 +314,7 @@ case "$action" in
;;

create_pool)
check_aws
if [[ $# -eq 2 ]]; then
create_identity_pool ${2}
else
Expand All @@ -321,6 +324,7 @@ case "$action" in
;;

create_table)
check_aws
if [[ $# -eq 3 ]]; then
create_table ${2} ${3}
else
Expand All @@ -330,6 +334,7 @@ case "$action" in
;;

create_service)
check_aws
if [[ $# -eq 2 ]]; then
build_bundle
create_lambda_service ${2}
Expand Down

0 comments on commit 97f0c71

Please sign in to comment.