fix how we extract the smtp password from aws_iam_access_key

https://www.terraform.io/docs/providers/aws/r/iam_access_key.html#ses_smtp_password

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-06 09:40:56 -04:00
parent 82e34bdfb0
commit 023d2bea60
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -3,14 +3,9 @@
* For details see: https://www.terraform.io/docs/providers/aws/r/iam_access_key.html
**/
output "smtp_access_key" {
output "smtp_username" {
value = "${aws_iam_access_key.smtp.id}"
}
output "smtp_secret_key" {
value = "${aws_iam_access_key.smtp.encrypted_secret}"
output "smtp_password" {
value = "${aws_iam_access_key.smtp.ses_smtp_password}"
}
/**
* This can be decrypted with:
* echo $encrypted_secret | base64 --decode | keybase pgp
**/