clouddrove / terraform-aws-ses

Terraform module to create an SES Identity with SES IAM user on AWS.
https://www.terraform.io/docs/providers/aws/r/ses_domain_identity.html
Apache License 2.0
27 stars 24 forks source link

IAM user credentials #26

Closed zahornyak closed 11 months ago

zahornyak commented 1 year ago

Please add the IAM user access key ID and secret key to outputs or make it possible to put them somewhere, for example, into the parameter store.

output "iam_access_key_secret" {
  description = "The access key secret"
  value       = try(aws_iam_access_key.default[0].secret, "")
  sensitive   = true
}
output "iam_access_key_id" {
  description = "The access key ID"
  value       = try(aws_iam_access_key.default[0].id, "")
}

or

module "ssm_keys" {
  source  = "zahornyak/multiple-ssm-parameters/aws"
  version = "0.0.13"

  parameter_prefix = "/${var.iam_name}/"

  parameters = {
    ses_user_access_key = {
      value = aws_iam_access_key.default[0].id
    }
    ses_user_secret_key = {
      value = aws_iam_access_key.default[0].secret
    }
  }
}
anmolnagpal commented 1 year ago

Hello @zahornyak

Will be great, if you can create a pull request for the same and team can review it

theprashantyadav commented 11 months ago

@zahornyak I've added output for access key and secret key