I am currently creating IAM users with no login profile using cloudformation template files. I am attempting to automate the user creation and access to codecommit repo. But I couldn't find a way to create https git credentials for an IAM user. Can someone please let me know if its achievable using cloudformation template or from lambda?
CodePudding user response:
As far as I can tell, there is no way to do this with a CloudFormation resource.
You can with Lambda, using the CreateServiceSpecificCredential API call. You pass it the user's IAM username and the service name, which in this case is codecommit.amazonaws.com
. It returns a username and password for use with the service.