/
flagsHelpSpec.go
161 lines (112 loc) · 5.35 KB
/
flagsHelpSpec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package cmd
var requiredSpec = "REQUIRED - "
var revision string
var revisionSpec = `AWS ECS cluster`
var follow bool
var followSpec = `keep process logging from CloudWatch Logs`
var exit bool
var exitSpec = `Send signal to process exit when dettached. Use only with --follow (-f) option`
var image string
var imageSpec = `AWS ECR image`
var yes bool
var yesSpec = `Answer yes`
var force bool
var forceSpec = `Force the command despite the errors`
var quiet bool
var quietSpec = `Omit messages to the standard output`
var editorCommand string
var editorCommandSpec = `Override default text editor`
var containerName string
var containerNameSpec = `Container name from Task Definition`
var tag string
var tagSpec = `AWS ECR image tag`
var cfgFile string
var cfgFileSpec = `config file (default is $HOME/.ecsctl.yaml)`
var profile string
var profileSpec = `AWS Profile`
var region string
var regionSpec = `AWS Region`
var cluster string
var clusterSpec = `AWS ECS cluster`
var toCluster string
var toClusterSpec = `AWS ECS cluster target where the copy will be created`
var spotPrice string
var spotPriceSpec = `Maximum price to pay for the spot instances (default is On-Demand price)`
var spotFleetRole string
var spotFleetRoleSpec = `IAM fleet role grants the Spot fleet permission launch and terminate instances on your behalf`
var instanceProfile string
var instanceProfileSpec = `An instance profile is a container for an IAM role and enables you to pass role information to Amazon EC2 Instance when the instance starts`
var targetCapacity int64
var targetCapacitySpec = `The capacity amout defined for the cluster`
var allocationStrategy string
var allocationStrategySpec = `The strategy for requesting instances across different Availability Zones.
Valid values:
'lowestPrice': Automatically select the cheapest Availability Zone and instance type (default)
'diversified': Balance Spot instances across selected Availability Zones and instance types`
var subnet string
var subnetSpec = `The Subnet (ID or tag 'Name') to launch the instance
E.g. subnet-123abcd`
var subnets []string
var subnetsSpec = `The Subnet (ID or tag 'Name') to launch the instances. Can be passed multiple times
E.g. --subnet subnet-123abcd -n subnet-456efgh -n lorem-ipsum`
var kernelID string
var kernelIDSpec = `The ID of the Kernel`
var monitoring bool
var monitoringSpec = `Enables monitoring for the instances`
var key string
var keySpec = `Key name to access the instances`
var ebs bool
var ebsSpec = `Use EBS optimized`
var securityGroups []string
var securityGroupsSpec = `Security Group (ID, name, or tag 'Name') for the instances. Can be passed multiple times
E.g. --security-group sg-123abcd -g sg-456efgh -g lorem-ipsum`
var instanceType string
var instanceTypeSpec = `Type of instance to be launched
E.g. m4.large`
var instanceTypes []string
var instanceTypesSpec = `Type of instance to be used by the Spot Fleet. Can be passed multiple times
It's possible to change the units provided (target capacity) by a specific instance type adding a number after a colon (:) (default 1)
E.g. --instance-type m4.large:2 -i c4.large:2 -i t3.medium`
var environmentVariables []string
var environmentVariablesSpec = `Overwrite or add Environment Variables of the Task. Inform as "key=value" format.
Can be informed multiple times.`
var environmentVariableKeys []string
var environmentVariableKeysSpec = `Key of the Environment Variables to delete from Task. Can be informed multiple times. E.g. --key [ENV_KEY1] -k [ENV_KEY2]`
var credit string
var creditSpec = `The credit option for CPU usage of a T2 (default 'standard') or T3 (default 'unlimited') instance
Valid values: 'standard', 'unlimited'`
var groupTasks string
var groupTasksSpec = `Group the Tasks in the specified name.`
var numberTasks int64
var numberTasksSpec = `The number of tasks to launch`
var minimum int64
var minimumSpec = `The minimum number of instances to launch
If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances`
var maximum int64
var maximumSpec = `The maximum number of instances to launch
If you specify more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above MinCount`
var tags []string
var tagsSpec = `Tag to Spot Fleet instances as 'key=value'. Can be passed multiple times
E.g. --tag Name=sample -t Project=sample -t Lorem=Ipsum`
var platform string
var platformSpec = `The base operating system for the cluster
Valid values: 'linux', 'windows', 'windows-2016', 'windows-2019'`
var status string
var statusSpec = `Task definition Status
Valid values: 'all', 'active', 'inactive'`
var state string
var stateSpec = `Scheduled task Status
Valid values: 'all', 'enabled', 'disabled'`
var listARN bool
var listARNSpec = `List resources ARNs`
var noHeaderSpec = "Hide the header information of the listed table"
var watchSpec = "Stay watching for changes"
var taskDefinition string
var taskDefinitionSpec = "The Task Definition name (without the revision number)"
var commandOverride string
var latestTaskDefinition bool
var latestTaskDefinitionSpec = "Get the latest Task Definition revision (not deprecated) to use as source"
var taskDefinitionsEnvOverride bool
var taskDefinitionsEnvOverrideSpec = "Override container's environment variables"
var memory int64
var memoryReservation int64