AWS trouble in Bash Script
Thank you for all the comments. I think I found why it wasn't working.
It seems that AWS CLI commands from within a bash-script file don't work if the task-definition
or the service
are full ARNs (contrary to the documentation). My script started working as soon as I stripped the task-definition
and the service
to their name(and revision number) by removing the arn:aws:..<up to>../
part.
Just to be clear, the full arn for task-definitions and service do work from the command prompt...just not from withinthe bash-script.