-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsmtp.yml
176 lines (175 loc) · 5.42 KB
/
smtp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: 1
name: datagov-smtp
id: b90ace67-954b-4b33-8f84-95cacc55b94c
description: SMTP service provided by Amazon Simple Email Service (SES)
display_name: SMTP (using AWS SES)
image_url: https://www.pikpng.com/pngl/m/107-1078218_aws-ses-logo-png-transparent-ses-aws-clipart.png
documentation_url: https://aws.amazon.com/ses/
support_url: https://github.com/GSA/datagov-brokerpak
tags: [aws, ses, preview]
plan_updateable: true
plans:
- name: base
id: dc109a6e-c4a8-4fbb-8c49-acf9740ab819
description: 'Provision SMTP credentials to use for sending transactional mail from your application'
display_name: Send-only service
properties:
provision:
plan_inputs:
user_inputs:
- field_name: region
type: string
details: The region of the SES service.
default: ${config("aws.default_region")}
enum:
us-gov-west-1: us-gov-west-1
us-east-2 : us-east-2
us-east-1 : us-east-1
us-west-1 : us-west-1
us-west-2 : us-west-2
ap-east-1 : ap-east-1
ap-south-1 : ap-south-1
ap-northeast-3 : ap-northeast-3
ap-northeast-2 : ap-northeast-2
ap-southeast-1 : ap-southeast-1
ap-southeast-2 : ap-southeast-2
ap-northeast-1 : ap-northeast-1
ca-central-1 : ca-central-1
cn-north-1 : cn-north-1
cn-northwest-1 : cn-northwest-1
eu-central-1 : eu-central-1
eu-west-1 : eu-west-1
eu-west-2 : eu-west-2
eu-west-3 : eu-west-3
eu-north-1 : eu-north-1
me-south-1 : me-south-1
sa-east-1 : sa-east-1
- field_name: domain
type: string
details: Domain to send mail from
default: ""
- field_name: email_receipt_error
type: string
details: Email to recieve DMARC errors
default: "datagovhelp@gsa.gov"
- field_name: enable_feedback_notifications
type: boolean
details: Flag to toggle creation of SNS topics for feedback notifications
default: false
- field_name: mail_from_subdomain
type: string
details: Subdomain to use as sending email server
default: ""
computed_inputs:
- name: default_domain
overwrite: true
type: string
default: ${config("aws.zone")}
- name: labels
default: ${json.marshal(request.default_labels)}
overwrite: true
type: object
- name: instance_name
type: string
default: ${request.instance_id}
template_refs:
main: terraform/provision/main.tf
notification: terraform/provision/notification.tf
outputs: terraform/provision/outputs.tf
provider: terraform/provision/provider.tf
variables: terraform/provision/variables.tf
verification: terraform/provision/verification.tf
outputs:
- field_name: region
type: string
details: AWS region for the SES instance
- field_name: required_records
type: object
details: If a domain was supplied, the records to be created in that zone
- field_name: email_receipt_error
type: string
details: Email to recieve DMARC errors
- field_name: instructions
type: string
details: Any further steps are needed before using the service.
- field_name: domain_arn
type: string
details: Instance SES domain identity (used when creating bindings)
- field_name: bounce_topic_arn
type: string
details: ARN of the SNS topic receiving bounce feedback notifications
- field_name: complaint_topic_arn
type: string
details: ARN of the SNS topic receiving complaint feedback notifications
- field_name: delivery_topic_arn
type: string
details: ARN of the SNS topic receiving delivery feedback notifications
bind:
plan_inputs: []
user_inputs:
- field_name: source_ips
type: array
default:
- 52.222.122.97/32
- 52.222.123.172/32
details: IP Ranges that requests to SES must come from
prohibit_update: false
- field_name: notification_webhook
type: string
details: HTTPS endpoint to subscribe to feedback notifications
default: ""
computed_inputs:
- name: region
default: ${instance.details["region"]}
overwrite: true
type: string
- name: domain_arn
default: ${instance.details["domain_arn"]}
overwrite: true
type: string
- name: user_name
default: csb-${instance.name}-${request.binding_id}
overwrite: true
type: string
- name: instance_name
type: string
default: ${request.instance_id}
- name: bounce_topic_arn
default: ${instance.details["bounce_topic_arn"]}
overwrite: true
type: string
- name: complaint_topic_arn
default: ${instance.details["complaint_topic_arn"]}
overwrite: true
type: string
- name: delivery_topic_arn
default: ${instance.details["delivery_topic_arn"]}
overwrite: true
type: string
template_refs:
main: terraform/bind/main.tf
outputs: terraform/bind/outputs.tf
provider: terraform/bind/provider.tf
variables: terraform/bind/variables.tf
outputs:
- field_name: smtp_server
type: string
details: SMTP server
- field_name: smtp_user
type: string
details: SMTP user and AWS Access Key ID
- field_name: smtp_password
type: string
details: SMTP password
- field_name: secret_access_key
type: string
details: AWS Secret Access Key
- field_name: notification_webhook
type: string
details: Subscribed endpoint for email feedback notifications
examples:
- name: smtp
description: SMTP base
plan_id: dc109a6e-c4a8-4fbb-8c49-acf9740ab819
provision_params: {}
bind_params: {}