Skip to content
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

InvalidS3Configuration when creating EmailForwardingRuleSet #451

Open
CZhang1997 opened this issue Apr 28, 2024 · 2 comments
Open

InvalidS3Configuration when creating EmailForwardingRuleSet #451

CZhang1997 opened this issue Apr 28, 2024 · 2 comments
Assignees

Comments

@CZhang1997
Copy link

Hi,

I am getting InvalidS3Configuration when creating EmailForwardingRuleSet

  new EmailForwardingRuleSet(this, "EmailForwardingRuleSet", {
      // make the underlying rule set the active one
      enableRuleSet: true,
      // define how emails are being forwarded
      emailForwardingProps: [
        {
          // your domain name you want to use for receiving and sending emails
          domainName: domainName,
          // a prefix that is used for the From email address to forward your mails
          fromPrefix: "contact",
          // a list of mappings between a prefix and target email address
          emailMappings: [
            {
              // the prefix matching the receiver address as <prefix>@<domainName>
              receivePrefix: "contact",
              // the target email address(es) that you want to forward emails to
              targetEmails: ["[email protected]"],
            },
          ],
        },
      ],
    });
@seeebiii
Copy link
Owner

Hi, thanks for reporting this! I try to reproduce it and come back to you.

@seeebiii seeebiii self-assigned this Apr 29, 2024
@CZhang1997
Copy link
Author

I found an work around by putting the bucket and ses into different stack and get the bucket using

    this.incomingEmailEventBucket = Bucket.fromBucketArn(
      this,
      "incoming-email-event-bucket-arn",
      s3BucketsStack.incomingEmailEventBucket.bucketArn
    );

in the ses side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants