amazon web services - Can we create the user's by using the access and secret key - Stack Overflow

admin2025-04-26  4

I would like to confirm if it is possible to create AWS IAM users programmatically using an Access Key and Secret Key through either curl or Python. Specifically, I am interested in understanding the process.

Thanks Sameer

I would like to confirm if it is possible to create AWS IAM users programmatically using an Access Key and Secret Key through either curl or Python. Specifically, I am interested in understanding the process.

Thanks Sameer

Share Improve this question asked Jan 15 at 4:42 Sameer SinghSameer Singh 1072 silver badges7 bronze badges 2
  • 1 You can call the CreateUser API, and with recent versions of curl, you can have curl sign the request – Anon Coward Commented Jan 15 at 5:21
  • AWS's boto3 library can do this, of course, but there are also third-party signing pacakges such as aws-requests-auth. Or you can implement the signing steps yourself. – jarmod Commented Jan 15 at 12:56
Add a comment  | 

1 Answer 1

Reset to default 0

Are you aware AWS has an example Github repository that contains thousands of examples in all the supported programming langauges, including this one that uses the AWS SDK for Python and IAM service.

See this URL in AWS Github that shows how to use AWS SDK for Python (Boto3) to create an IAM user:

https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/python/example_code/iam/scenario_create_user_assume_role.py

转载请注明原文地址:http://anycun.com/QandA/1745599399a91000.html