Skip to content

CLI feature for the workmail API to create inbound rules in the organization settings #9564

Closed
@div-aigen

Description

@div-aigen

Describe the feature

I used the amazon workmail CLI to create organization in workmail, which was successful. However, I want to configure the organization settings where I can create inbound and outbound rules. This specific action is only allowed via aws console, and not via AWS CLI.

Use Case

An important use case is system integration. I want to create terraform stacks for all the AWS services I am using for my current project, so that if I have to change the account I'm working in, I can just roll out the terraform stack in a different account. Workmail is not a resource in terraform yet, but can be used as CLI wrapped by a null resource. Many must have faced this issue of not even having the option of using CLI because the api doesn't exist.

Proposed Solution

an additional endpoint called --put-inbound-mail-rule or something which can add further configuration by specifying a JSON:

{
    "rule_name": "<rule_name>",
    "action": "<action>", # default/drop/bounce/lambda
    "origin": "*",
    "destination": "[email protected]"
}

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2.24.20

Environment details (OS name and version, etc.)

Ubuntu 22.04

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.p3This is a minor priority issueworkmail

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions