Boto3: TagSpecifications not allowed in boto3.resource('ec2').create_instances()

Created on 17 Jul 2017  路  2Comments  路  Source: boto/boto3

Hi,

I just found out that using "TagSpecifications" in boto3.resource('ec2').create_instances() will result to an error ParamValidationError: Parameter validation failed: Unknown parameter in input: "TagSpecifications", must be one of: DryRun, ImageId, MinCount, MaxCount, KeyName, SecurityGroups, SecurityGroupIds, UserData, InstanceType, Placement, KernelId, RamdiskId, BlockDeviceMappings, Monitoring, SubnetId, DisableApiTermination, InstanceInitiatedShutdownBehavior, PrivateIpAddress, Ipv6Addresses, Ipv6AddressCount, ClientToken, AdditionalInfo, NetworkInterfaces, IamInstanceProfile, EbsOptimized.

My code was working in the past (few weeks/months earlier), but suddenly quit working. Should the TagSpecifications option be removed from the docs ( https://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.ServiceResource.create_instances ) ?

I'm using Boto3 1.4.4. botocore 1.5.21, and Python 3.5.2

closing-soon

Most helpful comment

I would suggest you update boto3 to start with: pip install -U boto3. Botocore 1.5.21 is fairy out of date as we are on version 1.5.83. Try that and let me know if the issue is resolved or if there is still a problem.

All 2 comments

I would suggest you update boto3 to start with: pip install -U boto3. Botocore 1.5.21 is fairy out of date as we are on version 1.5.83. Try that and let me know if the issue is resolved or if there is still a problem.

Tried updating boto3. Now with botocore 1.5.84, TagSpecifications are working. Thanks!

Was this page helpful?
0 / 5 - 0 ratings