samltoawsstskeys icon indicating copy to clipboard operation
samltoawsstskeys copied to clipboard

Need aws_security_key for Ansible

Open BennyHarv3 opened this issue 7 years ago • 0 comments

The credentials file that gets output by the extension has 3 different key/value pairs:

  • aws_access_key_id
  • aws_secret_access_key
  • aws_session_token

However, whenever the Ansbile EC2 module runs, it needs an additional value - aws_secret_key - or it will crash. My org has written a script to change the aws_session_token key to aws_secret_key (because they're the same value) to get this working for Ansible, but that inadvertently broken Terraform 🤦‍♂️

Since aws_session_token and aws_security_token are actually the same value, changing background/script.js:141 and background/script.js:177 to include aws_security_token = data.Credentials.SessionToken would fix the issue.

BennyHarv3 avatar Jan 10 '18 22:01 BennyHarv3