Questions tagged [boto]
23 questions
0
votes
1 answer
How to not install google cloud sdk by default while creating a Compute Engine instance?
Whenever I create a Compute Engine instance, it installs the google-cloud-sdk by default on the server. And that installs and configures BOTO on the server and set environment variables for that.
What I want is to not have anything remotely related…

Nishant Dixit
- 101
- 1
0
votes
1 answer
Ansible EC2 Dynamic Library Boto Error
I'm trying to run ansible with the ec2.py inventory file to make some updates on a fleet of servers. But I keep receiving the error message:
ERROR! Attempted to execute "inventories/ec2.py" as inventory script: Inventory script…

whobutsb
- 249
- 2
- 3
- 6
0
votes
2 answers
Ansible - dynamic aws inventory: read vault variable for ec2.py key and secret
I know for ec2.py I can either specify environment variables via export before calling ec2.py or use a boto config file with plain-text passwords (or python keyring).
As I have the aws key and secret in ansible vault anyway, is there a way to…

cytopia
- 177
- 1
- 14
0
votes
0 answers
Cannot Connect to EC2-VPC
I would like to configure an EC2 instance in a public subnet within a VPC. To accomplish this, I have the code below, using boto3. To summarize, I create a VPC, enable DNS support and hostnames for it, create a security group to ALLOW all ingress…

user3249763
- 41
- 1
0
votes
1 answer
Boto3 error on authorize_security_group_egress
When I try to update egress rule using boto3. I get the following error:
client.authorize_security_group_egress(
GroupId=group_id,CidrIp="0.0.0.0/0",
IpProtocol='tcp',
FromPort=from_port,
ToPort=to_port)
WARNING:root:Unexpected Error: An…

user37143
- 171
- 1
- 4
- 14
0
votes
2 answers
AWS boto filters
Below is the JSON result (for one volume) I get from running aws ec2 describe-volumes:
{
"AvailabilityZone": "eu-west-1a",
"Attachments": [
{
"AttachTime": "2015-02-23T15:01:37.000Z",
"InstanceId":…

SPRBRN
- 571
- 4
- 12
- 28
0
votes
1 answer
How to find total number of reserved instances under particular tag?
I am query AWS using boto ec2 in python.
Firstly I find all reserved instances by get_all_reserved_instances then I am also able to find total count of each instance_type by instance_count. I am trying to calculate total number of reserved instances…

Vikas Saini
- 163
- 3
0
votes
2 answers
Use boto to update ElasticBeanstalk environment options
Boto has a function, update_environment, that allows the user to update options in an AWS ElasticBeanstalk environment.
Using the AWS CLI, this would typically be actioned as follows:
aws elasticbeanstalk update-environment --environment-name my-env…

Garreth McDaid
- 3,449
- 1
- 27
- 42