Skip to main content
All CollectionsActionsAmazon Web Services
Register EC2 Instance with Load Balancer Actions
Register EC2 Instance with Load Balancer Actions
Matt Houser avatar
Written by Matt Houser
Updated over a week ago

Description

The Register Instance with Load Balancer action can be used to register an EC2 instance with an Elastic Load Balancer at a specific time of day. Once the instance has been registered, it can be optionally deregistered after a specific amount of time.

For example, an instance can be registered at 8am and deregistered 8 hours later with a single action.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Instance ID

Indicate the instance id of your EC2 instance. This value usually looks like "i-84a3dc7b". This instance must reside in the region specified.

Load Balancer Name

Optional. Specify the name of the Elastic Load Balancer that the instance is to be registered with.

Deregister the Instance

Indicate whether the instance should be automatically deregistered later. The running time of the instance must also be specified if this is checked.

Running Duration

Indicate the length of time the instance should remain registered before it is deregistered. This value is only required if "Deregister the Instance" is checked.

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • elb:DeregisterInstancesFromLoadBalancer

  • elb:RegisterInstancesWithLoadBalancer

Did this answer your question?