Q:

How to create AWS IAM service account with access and secret keys using terraform

I want to create IAM user (service account) with access and secret keys using terraform and not console. How can i do that? Thanks, Deepak

A:

The documentation for aws_iam_access_key has a full example of an IAM user with an access key. Please note that this will write the secret to the state file, so keep your state file secure.

