Login Creation for EC2 instance

Can we create new logins like New user name and password during instances provisioning using terraform?
I know we can do it for Azure virtual machines provisioning using (os_profile) terraform. I want do it the same for aws ec2 instances