Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f19407

Browse files
committed
Fix Service Discovery Flag description
Includes fix for DnsType
1 parent 52c0a9c commit 4f19407

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ecs-cli/modules/commands/compose/service/compose_service_command.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -137,47 +137,47 @@ func serviceDiscoveryFlags() []cli.Flag {
137137
return []cli.Flag{
138138
cli.BoolFlag{
139139
Name: flags.EnableServiceDiscoveryFlag,
140-
Usage: "Enable Service Discovery for your ECS Service",
140+
Usage: "[Service Discovery] Enable Service Discovery for your ECS Service",
141141
},
142142
cli.StringFlag{
143143
Name: flags.VpcIdFlag,
144-
Usage: "Service Discovery - The VPC that will be attached to the private DNS namespace",
144+
Usage: "[Service Discovery] The VPC that will be attached to the private DNS namespace",
145145
},
146146
cli.StringFlag{
147147
Name: flags.PrivateDNSNamespaceNameFlag,
148-
Usage: "Service Discovery - The name of the private DNS namespace to use with Service Discovery. The CLI creates the namespace if it doesn't already exist. For example, if the name is 'corp' than a service 'foo' will be reachable via DNS at 'foo.corp'",
148+
Usage: "[Service Discovery] The name of the private DNS namespace to use with Service Discovery. The CLI creates the namespace if it doesn't already exist. For example, if the name is 'corp' than a service 'foo' will be reachable via DNS at 'foo.corp'",
149149
},
150150
cli.StringFlag{
151151
Name: flags.PrivateDNSNamespaceIDFlag,
152-
Usage: "Service Discovery - The ID of an existing private DNS namespace to use with Service Discovery.",
152+
Usage: "[Service Discovery] The ID of an existing private DNS namespace to use with Service Discovery.",
153153
},
154154
cli.StringFlag{
155155
Name: flags.PublicDNSNamespaceIDFlag,
156-
Usage: "Service Discovery - The ID of an existing public DNS namespace to use with Service Discovery.",
156+
Usage: "[Service Discovery] The ID of an existing public DNS namespace to use with Service Discovery.",
157157
},
158158
cli.StringFlag{
159159
Name: flags.PublicDNSNamespaceNameFlag,
160-
Usage: "Service Discovery - The name of an existing public DNS namespace to use with Service Discovery. For example, if the name is 'corp' than a service 'foo' will be reachable via DNS at 'foo.corp'",
160+
Usage: "[Service Discovery] The name of an existing public DNS namespace to use with Service Discovery. For example, if the name is 'corp' than a service 'foo' will be reachable via DNS at 'foo.corp'",
161161
},
162162
cli.StringFlag{
163163
Name: flags.ServiceDiscoveryContainerNameFlag,
164-
Usage: "Service Discovery - The name of the container (service name in compose) that will use Service Discovery",
164+
Usage: "[Service Discovery] The name of the container (service name in compose) that will use Service Discovery",
165165
},
166166
cli.StringFlag{
167167
Name: flags.ServiceDiscoveryContainerPortFlag,
168-
Usage: "Service Discovery - The port on the container used for Service Discovery",
168+
Usage: "[Service Discovery] The port on the container used for Service Discovery",
169169
},
170170
cli.StringFlag{
171171
Name: flags.DNSTTLFlag,
172-
Usage: "Service Discovery - The TTL of the DNS Records used with the Route53 Service Discovery Resource",
172+
Usage: "[Service Discovery] The TTL of the DNS Records used with the Route53 Service Discovery Resource",
173173
},
174174
cli.StringFlag{
175175
Name: flags.DNSTypeFlag,
176-
Usage: "Service Discovery - The TTL of the DNS Records used with the Route53 Service Discovery Resource. Note that SRV records require container name and container port",
176+
Usage: "[Service Discovery] The type of the DNS Records used with the Route53 Service Discovery Resource (A or SRV). Note that SRV records require container name and container port",
177177
},
178178
cli.StringFlag{
179179
Name: flags.HealthcheckCustomConfigFailureThresholdFlag,
180-
Usage: "Service Discovery - The number of 30-second intervals that you want service discovery service to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance",
180+
Usage: "[Service Discovery] The number of 30-second intervals that you want service discovery service to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance",
181181
},
182182
}
183183
}
@@ -186,7 +186,7 @@ func updateServiceDiscoveryFlags() []cli.Flag {
186186
return []cli.Flag{
187187
cli.BoolFlag{
188188
Name: flags.UpdateServiceDiscoveryFlag,
189-
Usage: "[Optional] Service Discovery - Allows update of Service Discovery Service settings DNS TTL and Failure Threshold.",
189+
Usage: "[Optional] [Service Discovery] Allows update of Service Discovery Service settings DNS TTL and Failure Threshold.",
190190
},
191191
}
192192
}
@@ -195,7 +195,7 @@ func deleteServiceDiscoveryFlags() []cli.Flag {
195195
return []cli.Flag{
196196
cli.BoolFlag{
197197
Name: flags.DeletePrivateNamespaceFlag,
198-
Usage: "[Optional] Service Discovery - Deletes the private namespace created by the ECS CLI",
198+
Usage: "[Optional] [Service Discovery] Deletes the private namespace created by the ECS CLI",
199199
},
200200
}
201201
}

0 commit comments

Comments
 (0)