-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Add SES resource #5387
Add SES resource #5387
Conversation
Any thoughts of how to model the ReceiptRule list of actions to a Terraform structure? I can't think of a good way to do this within the current Terraform model. |
Apparently the first issue was simply a documentation issue. The docs have been updated to reflect the correct default values, so this is no longer a problem. |
Any updates on this? I'd really like to see SES support in Terraform. |
I've been busy with a few other things and haven't had time to devote to this PR. My current plan is to add a
|
All right, I've managed to get the @radeksimko I've rebased against master and tested everything. This should be ready to go now. |
@radeksimko I don't want this PR to end up neglected. Are you planning to take a look at this? Is there anything else I can do to help it get merged? |
Hi @yissachar Apologies for this slipping through the cracks - please can this be rebased against master? We can try and get it reviewed asap Paul |
} | ||
} | ||
|
||
func resourceAwsSesActiveReceiptRuleSetCreate(d *schema.ResourceData, meta interface{}) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IF all this func does is call Update, then line 13 can change to:
Create: resourceAwsSesActiveReceiptRuleSetUpdate,
Hi @yissachar Just had an initial review of this - the functionality looks good to me. When you have rebased, I can get the tests running and then see if we are in a state for a merge Thanks for the work here so far Paul |
Hi @stack72, thanks for taking a look at this! I've rebased against master and pushed some commits to address the points you've brought up. I've also left some comments about things that I don't believe are issues. |
Hi @yissachar Thanks for making the changes here :) This LGTM! The test results are as follows:
|
* Add SES resource * Detect ReceiptRule deletion outside of Terraform * Handle order of rule actions * Add position field to docs * Fix hashes, add log messages, and other small cleanup * Fix rebase issue * Fix formatting
excellent- thanks to all for this! |
|
||
* `header_name` - (Required) The name of the header to add | ||
* `header_value` - (Required) The value of the header to add | ||
* `position` - (Required) The position of the action in the receipt rule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yissachar This says that position is required but the example doesn't include it. Which is right? Taking a quick glance at the code it does look like it's required. It might also be useful to point out that this should be an integer but I'm not sure if that's done elsewhere in the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Position is required.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This PR adds support for the SES resource.
There are two outstanding issues that make this a WIP:
enabled
andscan_enabled
have to be manually set in order to prevent them from defaulting to false. I don't know why this is happening.