如何通过CLI通过AWS ECS Fargate安排任务?

时间:2020-09-02 23:42:17

标签: aws-cli

我正在尝试按照本教程https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduled_tasks_cli_tutorial.html进行操作,但是对于put-targets命令,使该规则很好:

Error parsing parameter '--targets': Expected: '=', received: 'EOF' for input:

它会产生此错误Unknown parameter in Targets[0]: "NetworkConfiguration"

在我看来,作者在结尾处添加了一个大括号,因此我尝试在没有最后一个大括号的情况下运行它,并收到此错误import pandas import teradatasql import time with teradatasql.connect (host="whomooz", user="guest", password="please") as con: with con.cursor () as cur: cur.execute ("create volatile table voltab (" + ",".join ([ "c{} integer".format (n) for n in range (1, 61) ]) + ") on commit preserve rows") cur.execute ("insert into voltab(c1) select row_number() over (order by calendar_date) as c1 from sys_calendar.calendar qualify c1 <= 62500") cur.execute ("insert into voltab(c1) select c1 + 62500 from voltab") cur.execute ("insert into voltab(c1) select c1 + 125000 from voltab") cur.execute ("insert into voltab(c1) select c1 + 250000 from voltab") cur.execute ("insert into voltab(c1) select c1 + 500000 from voltab") cur.execute ("insert into voltab(c1) select c1 + 1000000 from voltab") cur.execute ("insert into voltab(c1) select c1 + 2000000 from voltab") cur.execute ("insert into voltab(c1) select c1 + 4000000 from voltab where c1 <= 1000000") cur.execute ("update voltab set " + ",".join ([ "c{} = c1".format (n) for n in range (2, 49) ])) cur.execute ("select * from voltab") print ('beginning fetchall') dStartTime = time.time () rows = cur.fetchall () dElapsed = time.time () - dStartTime print ("fetchall took {} seconds, or {} minutes, and returned {} rows".format (dElapsed, dElapsed / 60, len (rows))) dStartTime = time.time () df = pandas.read_sql ("select * from voltab", con) dElapsed = time.time () - dStartTime print ("read_sql took {} seconds, or {} minutes, and returned {} rows".format (dElapsed, dElapsed / 60, len (df)))

0 个答案:

没有答案