Skip to content

Commit a6c2b80

Browse files
author
Premdeep Saini
committed
extarct smtp username to variable
1 parent 0f0a7f3 commit a6c2b80

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ resource "aws_ses_domain_identity_verification" "email_domain_verification" {
534534

535535
resource "aws_iam_user" "gitlab_smtp_user" {
536536
count = var.create_ses_identity ? 1 : 0
537-
name = "gitlab_smtp_user"
537+
name = var.ses_username
538538
}
539539

540540
resource "aws_iam_access_key" "gitlab_smtp_user" {

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,9 @@ variable "aws_region" {
291291
description = "AWS region code. Eg: ap-south-1"
292292
default = "ap-south-1"
293293
}
294+
295+
variable "ses_username" {
296+
type = string
297+
description = "Username for Gitlab SMTP user"
298+
default = "gitlab_smtp_user"
299+
}

0 commit comments

Comments
 (0)