Im trying to create iam users and after create an user I want to show the url that user can use to login in aws managment console.
Im trying to do this with code below, but Im having an issue.
Every time I create an user the aws managment console signin link changes and then when I print the url and user acess it I get 404 error "The page you tried was not found".
Do you know how to create aws managment console profiles so users can acess aws managment console but have only one url to sign in? Or other solution to fix this issue?
username = validField("Please enter your username: ")
password = validField("Please enter your password: ")
iam.create_user(username)
login = iam.create_login_profile(username, password)
url = iam.get_signin_url()
iam.create_account_alias("account-" + username)
print "You can acess aws managment console using this link: " + url
Aucun commentaire:
Enregistrer un commentaire