awslabs / fargatecli

CLI for AWS Fargate
Apache License 2.0
893 stars 114 forks source link

Default task running doesn't work without additional configuration #73

Open themotu opened 5 years ago

themotu commented 5 years ago

Basic task run: InvalidParameterException: subnets can not be empty. Basic task run with subnets: InvalidParameterException: security group cannot be blank

dstroot commented 5 years ago

Did you find a way around this?

dstroot commented 5 years ago

FYI - for anyone else who watches the video and can't get a task running, the video is misleading. You need additional configuration. The minimum I found that worked was:

fargate task run web --image repo/container:latest \
--subnet-id subnet-xxxxxxxxxxxxx \
--security-group-id sg-xxxxxxxxxxxx
joshenders commented 3 years ago

The video should be updated if it's misleading. It was for me and this issue confirms that I am not alone.