- Create account in AWS console
- Open IAM Console
- On the navigation menu, choose Users.
- Choose your IAM user name (not the check box).
- Open the Security credentials tab, and then choose Create access key.
- To see the new access key, choose Show. Your credentials resemble the following:
Access key ID: AKIAIOSFODNN7EXAMPLE
Secret access key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Store these keys in ~/.aws/credentials
file in following format:
[default]
aws_access_key_id = your-access-key
aws_secret_access_key = your-secret-key
go run main.go