Skip to main content

All Questions

Tagged with
2 votes
1 answer
763 views

How does the AWS CLI open a browser and wait for a response before proceeding?

I'm trying to build a golang cli tool for my company and as part of that build login and some other features into the tool. For the life of me I can't figure out how AWS is able to open a browser ...
JacobW's user avatar
  • 876
0 votes
0 answers
30 views

Can I download s3 objects locally with custom naming?

Using the CLI you can use aws s3 cp s3://my-bucket/1234_client/dev/my.hprof.gz ./my_file_naming_is_custom.hprof.gz The above gives you a renamed file of the object locally. I want to do the same in ...
Zach Anton's user avatar
1 vote
2 answers
1k views

loop all objects in aws config using boto3

i was new to aws boto3. Goal : i want pull all compliant& non-compliant rule from aws-config service and write in txt file as non-compliant_config.txt The problem is when i when run this code , ...
praveen's user avatar
  • 359
0 votes
3 answers
1k views

Access multiple profiles from AWS SDK - Python

I am trying to access csv files in S3 buckets of different profiles which are saved in aws credentials file. How can I write a script in AWS SDK in python to access different profiles at a time. ...
Rajeswari's user avatar
2 votes
1 answer
4k views

AWS IAM Python Boto3 script - Create User

My Issue: I am trying to create an AWS CLI script using Python and the Boto3 library. I want the script to ask for inputs (username? programmatic access? attach to which Group? Change password on ...
bfresh's user avatar
  • 156
2 votes
2 answers
12k views

How to run aws cli comands in python using subprocess module

I am trying to run a very basic AWS CLI command from python, instead of using boto3 So I found one answer from stack overflow I tried that but it didn't do any better, I don't want to use boto3, ...
Vatsal Rahul's user avatar
0 votes
1 answer
498 views

test ansible roles with molecule and boto3

I have ansible roles that creates servers, S3 buckets, security groups ... and I want to establish some unit testing using Molecule. After some researches, I found out that Molecule is using Testinfra ...
Souad's user avatar
  • 5,094
1 vote
0 answers
71 views

Is there a way to get all services in use in AWS using cli/api

I need to find a way (using AWS CLI or Python ergo AWS SDK) to retrieve all services in use by account X. Is that possible? If it is is it an integrated feature or does it needs iterating all the ...
Nephilimrising's user avatar
0 votes
1 answer
368 views

aws python boto3 is not returning the right number of security groups

I am using Python SDK boto3 in order to get all the security groups into the region but I am getting the wrong number. there is my code: ## Client connection ec2 = boto3.client( 'ec2', ...
Robert's user avatar
  • 11k
-2 votes
2 answers
1k views

How to use aws cli in python or node.js programming language?

How do i use awscli command in python or node.js programming? My final aim is to attach security group to running instances in AWS. aws --region us-east-1 ec2 modify-instance-attribute --instance-...
Rapid's user avatar
  • 111