| Euca2ools Guide / Elastic Load Balancing Commands | |
Add a new policy to a load balancer.
eulb-create-lb-policy -n POLICY -t POLTYPE
[-a "name=NAME, value=VALUE"] [-A NAME=VALUE,...]
[--attributes-from-file FILE] [-U URL]
[--region USER@REGION] [-I KEY_ID] [-S KEY]
[--security-token TOKEN] [--debug] [--debugger]
[--version] [-h]
ELB
| Option | Description | Required |
|---|---|---|
| ELB | Name of the load balancer | Yes |
| -n, --policy-name POLCY | Name of the new policy | Yes |
| -t, --policy-type POLTYPE | Type of the new policy. For a list of policy types, use eulb-describe-lb-policy-types. | Yes |
| -a, --attribute "name=NAME, value=VALUE" | Name and value for each attribute associated with the new policy. Use this option multiple times to supply multiple attributes. | Conditional |
| -A, --attribute "name=NAME, value=VALUE" | Comma-delimited list of attribute names and values to associate with the new policy, each pair of which is separated by "=". This is a more concise alternative to the -a/--attribute option. | Conditional |
| --attribute-from-file FILENAME | Name of a file containing attribute names and values to associate with the new policy, one per line, each pair of which is separated by "=". Lines that are blank or begin with "#" are ignored. | Conditional |
| Option | Description |
|---|---|
| --region USER@REGION | Name of the region or user in config files to use to connect to the service |
| -U URL, --url URL | Load balancing service endpoint URL |
| -I key_id, --access-key-id key_id | User's access key ID |
| -S key, --secret-key key | User's AWS secret key |
| --show-empty-fields | Show empty fields using (nil) as a placeholder to indicate that this data was not requested. Empty fields are not shown by default. |