When creating the elastic IP in AWS via boto3. API does not give an option to add Name to the elastic IP but this field is available via UI. How can I add Name to elastic IP while creating it or after?
Following code work:
import boto3
client = boto3.client('ec2')
addr = client.allocate_address(Domain='vpc')
print addr['PublicIp']
But, if I add "name" field, it throws this error:
ParamValidationError: Parameter validation failed: Unknown parameter in input: "Name", must be one of: DryRun, Domain