-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_ses_domain_identity.default is tuple with 1 element #16
Comments
Yep, running to this same issue as well. Did you find a fix for it @ZeroDeth ? |
agconti
added a commit
to agconti/terraform-aws-ses
that referenced
this issue
Jul 22, 2022
Closes clouddrove#16 Previously: ```hcl resource "aws_ses_identity_policy" "default" { count = var.enable_policy ? 1 : 0 identity = aws_ses_domain_identity.default.*.arn name = var.policy_name policy = data.aws_iam_policy_document.document.json } ``` Terraform expects a single identity here instead of a list so it errors. Updating it to use the count index solves the issue. ```hcl resource "aws_ses_identity_policy" "default" { count = var.enable_policy ? 1 : 0 identity = aws_ses_domain_identity.default[count.index].arn name = var.policy_name policy = data.aws_iam_policy_document.document.json } ```
anmolnagpal
pushed a commit
that referenced
this issue
Jul 28, 2022
Closes #16 Previously: ```hcl resource "aws_ses_identity_policy" "default" { count = var.enable_policy ? 1 : 0 identity = aws_ses_domain_identity.default.*.arn name = var.policy_name policy = data.aws_iam_policy_document.document.json } ``` Terraform expects a single identity here instead of a list so it errors. Updating it to use the count index solves the issue. ```hcl resource "aws_ses_identity_policy" "default" { count = var.enable_policy ? 1 : 0 identity = aws_ses_domain_identity.default[count.index].arn name = var.policy_name policy = data.aws_iam_policy_document.document.json } ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Trying to enable
mail from domain
to usemail.example.com
Example
Error:
I am sure not a bug and doing something wrong here.
Thanks
The text was updated successfully, but these errors were encountered: