File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,16 @@ RunCommand.flags = {
129129 description :
130130 'JSON to customize launch configuration of ECS/Fargate tasks (see https://www.artillery.io/docs/reference/cli/run-fargate#using---launch-config)'
131131 } ) ,
132+ 'container-dns-servers' : Flags . string ( {
133+ description :
134+ 'Comma-separated list of DNS servers for Artillery container. Maps to dnsServers parameter in ECS container definition'
135+ } ) ,
136+ 'task-ephemeral-storage' : Flags . string ( {
137+ description :
138+ 'Ephemeral storage in GiB for the worker task. Maps to ephemeralStorage parameter in ECS container definition. Fargate-only.' ,
139+ type : 'integer' ,
140+ } ) ,
141+
132142 'subnet-ids' : Flags . string ( {
133143 description :
134144 'Comma-separated list of AWS VPC subnet IDs to launch Fargate tasks in'
Original file line number Diff line number Diff line change @@ -1203,6 +1203,10 @@ async function ensureTaskExists(context) {
12031203 }
12041204 } ;
12051205
1206+ if ( context . cliOptions . containerDnsServers ) {
1207+ artilleryContainerDefinition . dnsServers = context . cliOptions . containerDnsServers . split ( ',' ) ;
1208+ }
1209+
12061210 let taskDefinition = {
12071211 family : context . taskName ,
12081212 containerDefinitions : [ artilleryContainerDefinition ] ,
@@ -1495,6 +1499,12 @@ async function generateTaskOverrides(context) {
14951499 overrides . taskRoleArn = context . customRoleArn ;
14961500 }
14971501
1502+ if ( context . cliOptions . taskEphemeralStorage ) {
1503+ overrides . ephemeralStorage = {
1504+ sizeInGiB : context . cliOptions . taskEphemeralStorage
1505+ } ;
1506+ }
1507+
14981508 overrides . containerOverrides [ 0 ] . environment . push ( {
14991509 name : 'USE_V2' ,
15001510 value : 'true'
You can’t perform that action at this time.
0 commit comments