Skip to content
Advertisement

Tag: boto3

aws boto3 grab subnet info

Im trying to grab a list of subnets from aws, I have a working version for VPC that I have modified: I keep getting: subnets = list(ec2.Subnet.filters(Filters=filters)) AttributeError: ‘function’ object has no attribute ‘filters’ From everything im reading and other examples this should work Any ideas? Answer To access the subnets collection of ec2 resource,

Wait for complete deletion of a DynamoDB table using boto3

I need to delete a dynamodb table, and wait until it is completely removed. How can I check this? boto3 api expose a method get_waiter to wait for certain events, but it is not well documented. Can I use it for this purpose? Which would be the event name, or maybe handle a ResourceNotFoundException Answer After delete_table API, call table_not_exists

Retrieving subfolders names in S3 bucket from boto3

Using boto3, I can access my AWS S3 bucket: Now, the bucket contains folder first-level, which itself contains several sub-folders named with a timestamp, for instance 1456753904534. I need to know the name of these sub-folders for another job I’m doing and I wonder whether I could have boto3 retrieve those for me. So I tried: which gives a dictionary,

Unable to install boto3

I have trouble installing boto3 inside a virtual environment. I have done what the document says. First I activated virtual environment. then I did a: Now I enter python But if I import boto, it works Why does it install boto 2.38 when I installed boto3. I tried closing the terminal and re-opened it. Should I restart the Ubuntu machine?

Advertisement