# NOT RUN {
# This example registers the specified instances with the specified target
# group.
# }
# NOT RUN {
svc$register_targets(
TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targe...",
Targets = list(
list(
Id = "i-80c8dd94"
),
list(
Id = "i-ceddcd4d"
)
)
)
# }
# NOT RUN {
# This example registers the specified instance with the specified target
# group using multiple ports. This enables you to register ECS containers
# on the same instance as targets in the target group.
# }
# NOT RUN {
svc$register_targets(
TargetGroupArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-t...",
Targets = list(
list(
Id = "i-80c8dd94",
Port = 80L
),
list(
Id = "i-80c8dd94",
Port = 766L
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab