Creating a new user without console access and only create access key and secrets access key and convert the secret access key to ses smtp password v4.
it said
│ Error: Unsupported attribute
│
│ on smtp_create_user_2.tf line 113, in output “ses_smtp_password”:
│ 113: value = module.iam-user-ses-smtp-50.ses_smtp_password_v4
│ ├────────────────
│ │ module.iam-user-ses-smtp-50 is a object
│
│ This object does not have an attribute named “ses_smtp_password_v4”.
I put in
variable “ses_smtp_password_v4” {
type = string
default = “”
}
also put in resource “aws_iam_access_key” “ses_smtp_password_v4” {
count = var.create_user && var.create_iam_access_key && var.pgp_key != “” ? 1 : 0
user = aws_iam_user.this[0].name
pgp_key = var.pgp_key
status = var.iam_access_key_status
}
in the main.tf
any pros to provide some guidance?