]>
Commit | Line | Data |
---|---|---|
adc0eb57 DBTC |
1 | <!DOCTYPE html> |
2 | <html lang="en"> | |
3 | <head> | |
4 | <script type="text/javascript"> | |
5 | WEB_SOCKET_SWF_LOCATION = "/__rack/WebSocketMain.swf"; | |
6 | ||
7 | </script> | |
8 | <script type="text/javascript" src="../../../../__rack/swfobject.js"></script> | |
9 | <script type="text/javascript" src="../../../../__rack/web_socket.js"></script> | |
10 | ||
11 | <script type="text/javascript"> | |
12 | RACK_LIVERELOAD_PORT = 35729; | |
13 | </script> | |
14 | <script type="text/javascript" src="../../../../__rack/livereload.js%3Fhost=0.0.0.0&port=35729"></script> | |
15 | ||
16 | ||
17 | <meta charset="utf-8"> | |
18 | <meta name="mobile-web-app-capable" content="yes"> | |
19 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
20 | <meta name="description" content="The domain_resource allows mailgun domain to be managed by Terraform."> | |
21 | ||
22 | <link rel="apple-touch-icon" sizes="180x180" href="http://localhost:4567/assets/images/favicons/apple-touch-icon.png"> | |
23 | <link rel="icon" type="image/png" href="http://localhost:4567/assets/images/favicons/favicon-32x32.png" sizes="32x32"> | |
24 | <link rel="icon" type="image/png" href="http://localhost:4567/assets/images/favicons/favicon-16x16.png" sizes="16x16"> | |
25 | <link rel="manifest" href="http://localhost:4567/android-manifest.json"> | |
26 | <link rel="mask-icon" href="http://localhost:4567/assets/images/favicons/safari-pinned-tab.svg" color="#5C4EE5"> | |
27 | <meta name="msapplication-config" content="/microsoft-tile.xml" /> | |
28 | <meta name="theme-color" content="#ffffff"> | |
29 | ||
30 | <meta name="twitter:card" content="summary" /> | |
31 | <meta property="og:image" content="https://www.terraform.io/assets/images/og-image.png"/> | |
32 | <meta property="og:image:width" content="100"/> | |
33 | <meta property="og:image:height" content="100"/> | |
34 | <meta name="twitter:site" content="@HashiCorp" /> | |
35 | <meta name="twitter:creator" content="@HashiCorp" /> | |
36 | <meta property="og:type" content="website" /> | |
37 | <meta property="og:url" content="https://www.terraform.io/docs/providers/mailgun/r/domain.html" /> | |
38 | <meta property="og:title" content="Mailgun: mailgun_domain - Terraform by HashiCorp" /> | |
39 | <meta property="og:site_name" content="Terraform by HashiCorp"/> | |
40 | <meta property="og:description" content="The domain_resource allows mailgun domain to be managed by Terraform." /> | |
41 | ||
42 | <title>Mailgun: mailgun_domain - Terraform by HashiCorp</title> | |
43 | ||
44 | <!-- Stylesheets --> | |
45 | <link rel="stylesheet" href="https://use.typekit.net/wxf7mfi.css"> | |
46 | <link href="../../../../assets/stylesheets/application.css" rel="stylesheet" /> | |
47 | ||
48 | <!-- Site scripts --> | |
49 | <!--[if lt IE 9]><script src="/assets/javascripts/ie-compat.js" defer="defer"></script><![endif]--> | |
50 | <script src="../../../../assets/javascripts/application.js" defer="defer"></script> | |
51 | ||
52 | <!-- Analytics scrpts --> | |
53 | <script defer> | |
54 | !function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),e.push(a),e}};for(var t=0;t<e.methods.length;t++){var a=e.methods[t];e[a]=e.factory(a)}e.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(t,a)},e.SNIPPET_VERSION="4.0.0",e.load("0EXTgkNx0Ydje2PGXVbRhpKKoe5wtzcE")}}();var om597a24292a958,om597a24292a958_poll=function(){var e=0;return function(t,a){clearInterval(e),e=setInterval(t,a)}}();!function(e,t,a){if(e.getElementById(a))om597a24292a958_poll(function(){if(window.om_loaded&&!om597a24292a958)return(om597a24292a958=new OptinMonsterApp).init({s:"35109.597a24292a958",staging:0,dev:0,beta:0})},25);else{var n=!1,o=e.createElement("script");o.id=a,o.src="//a.optnmstr.com/app/js/api.min.js",o.async=!0,o.onload=o.onreadystatechange=function(){if(!(n||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState))try{n=om_loaded=!0,(om597a24292a958=new OptinMonsterApp).init({s:"35109.597a24292a958",staging:0,dev:0,beta:0}),o.onload=o.onreadystatechange=null}catch(e){}},(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(o)}}(document,0,"omapi-script"); | |
55 | </script> | |
56 | ||
57 | ||
58 | </head> | |
59 | ||
60 | <body id="page-docs-mailgun-domain" class="layout-mailgun page-mailgun-mailgun-domain"> | |
61 | ||
62 | <svg class="hidden-print" aria-hidden="true" style="position: absolute; width: 0; height: 0;" width="0" height="0" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
63 | <defs> | |
64 | <symbol id="mega-nav-icon-angle" viewBox="0 0 13 7"> | |
65 | <polygon points="6.5,6.5 0.7,1.6 1.3,0.8 6.5,5.2 11.7,0.8 12.3,1.6 "/> | |
66 | </symbol> | |
67 | <symbol id="mega-nav-icon-close" viewBox="0 0 13 15"> | |
68 | <path vector-effect="non-scaling-stroke" d="M1.1 14L11.9 1M11.9 14L1.1 1"/> | |
69 | </symbol> | |
70 | </defs> | |
71 | </svg> | |
72 | <div class="hidden-print mega-nav-sandbox"> | |
73 | <div class="mega-nav-banner"> | |
74 | <div class="container"> | |
75 | <div class="mega-nav-banner-item"> | |
76 | <a class="mega-nav-banner-logo" href="https://www.hashicorp.com"><img src="../../../../assets/images/mega-nav/logo-hashicorp-wordmark.svg" alt="HashiCorp Logo" /></a> | |
77 | </div> | |
78 | <div class="mega-nav-banner-item"> | |
79 | <p class="mega-nav-tagline"><span class="visible-xs text-muted">Learn the</span><span class="hidden-xs text-muted">Learn how Terraform fits into the</span></p> | |
80 | <div id="#mega-nav" class="mega-nav"> | |
81 | <button type="button" id="mega-nav-ctrl" class="mega-nav-ctrl"> | |
82 | <div class="mega-nav-ctrl-items"> | |
83 | <img src="../../../../assets/images/mega-nav/logo-hashicorp.svg" alt="HashiCorp Logo" /> | |
84 | <strong>HashiCorp Suite</strong> | |
85 | <span class="mega-nav-icon-outline"> | |
86 | <svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg><span class="visuallyhidden">Open</span> | |
87 | </span> | |
88 | </div> | |
89 | </button> | |
90 | <div id="mega-nav-body-ct" class="mega-nav-body-ct" aria-labelledby="mega-nav-ctrl"> | |
91 | <div class="mega-nav-body"> | |
92 | <button type="button" id="mega-nav-close" class="mega-nav-close"><svg class="mega-nav-icon mega-nav-icon-close" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-close"></use></svg><span class="visuallyhidden">Close</span></button> | |
93 | <div class="mega-nav-body-header"> | |
94 | <div class="mega-nav-body-header-item"> | |
95 | <h2 class="mega-nav-h1">Provision, Secure, Connect, and Run</h2> | |
96 | <p class="mega-nav-h2">Any infrastructure for any application</p> | |
97 | </div> | |
98 | <div class="mega-nav-body-header-item"> | |
99 | <a href="https://www.hashicorp.com/" class="mega-nav-btn"><img src="../../../../assets/images/mega-nav/logo-hashicorp.svg" alt="HashiCorp Logo" /> Learn the HashiCorp Enterprise Suite <svg class="mega-nav-icon mega-nav-icon-angle-right" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#mega-nav-icon-angle"></use></svg></a> | |
100 | </div> | |
101 | </div> | |
102 | <div class="mega-nav-body-grid"> | |
103 | <div class="mega-nav-body-grid-item"> | |
104 | <h3 class="mega-nav-h3">Provision</h3> | |
105 | <ul class="mega-nav-grid"> | |
106 | <li> | |
107 | <a href="https://www.vagrantup.com" class="mega-nav-grid-item mega-nav-grid-item-vagrant"> | |
108 | <div class="mega-nav-grid-item-img"> | |
109 | <img src="../../../../assets/images/mega-nav/logo-vagrant.svg" alt="Vagrant Logo" /> | |
110 | </div> | |
111 | <b>Vagrant</b> | |
112 | <ul> | |
113 | <li><span class="mega-nav-tag">Build</span></li> | |
114 | <li><span class="mega-nav-tag">Test</span></li> | |
115 | </ul> | |
116 | </a> | |
117 | </li> | |
118 | <li> | |
119 | <a href="https://www.packer.io" class="mega-nav-grid-item mega-nav-grid-item-packer"> | |
120 | <div class="mega-nav-grid-item-img"> | |
121 | <img src="../../../../assets/images/mega-nav/logo-packer.svg" alt="Packer Logo" /> | |
122 | </div> | |
123 | <b>Packer</b> | |
124 | <ul> | |
125 | <li><span class="mega-nav-tag">Package</span></li> | |
126 | </ul> | |
127 | </a> | |
128 | </li> | |
129 | <li> | |
130 | <a href="https://www.terraform.io" class="mega-nav-grid-item mega-nav-grid-item-terraform"> | |
131 | <div class="mega-nav-grid-item-img"> | |
132 | <img src="../../../../assets/images/mega-nav/logo-terraform.svg" alt="Terraform Logo" /> | |
133 | </div> | |
134 | <b>Terraform</b> | |
135 | <ul> | |
136 | <li><span class="mega-nav-tag">Provision</span></li> | |
137 | </ul> | |
138 | </a> | |
139 | </li> | |
140 | </ul> | |
141 | </div> | |
142 | <div class="mega-nav-body-grid-item"> | |
143 | <h3 class="mega-nav-h3">Secure</h3> | |
144 | <ul class="mega-nav-grid"> | |
145 | <li> | |
146 | <a href="https://www.vaultproject.io" class="mega-nav-grid-item mega-nav-grid-item-vault"> | |
147 | <div class="mega-nav-grid-item-img"> | |
148 | <img src="../../../../assets/images/mega-nav/logo-vault.svg" alt="Vault Logo" /> | |
149 | </div> | |
150 | <b>Vault</b> | |
151 | <ul> | |
152 | <li><span class="mega-nav-tag">Secure</span></li> | |
153 | </ul> | |
154 | </a> | |
155 | </li> | |
156 | </ul> | |
157 | </div> | |
158 | <div class="mega-nav-body-grid-item"> | |
159 | <h3 class="mega-nav-h3">Connect</h3> | |
160 | <ul class="mega-nav-grid"> | |
161 | <li> | |
162 | <a href="https://www.consul.io" class="mega-nav-grid-item mega-nav-grid-item-consul"> | |
163 | <div class="mega-nav-grid-item-img"> | |
164 | <img src="../../../../assets/images/mega-nav/logo-consul.svg" alt="Consul Logo" /> | |
165 | </div> | |
166 | <b>Consul</b> | |
167 | <ul> | |
168 | <li><span class="mega-nav-tag">Connect</span></li> | |
169 | </ul> | |
170 | </a> | |
171 | </li> | |
172 | </ul> | |
173 | </div> | |
174 | <div class="mega-nav-body-grid-item"> | |
175 | <h3 class="mega-nav-h3">Run</h3> | |
176 | <ul class="mega-nav-grid"> | |
177 | <li> | |
178 | <a href="https://www.nomadproject.io" class="mega-nav-grid-item mega-nav-grid-item-nomad"> | |
179 | <div class="mega-nav-grid-item-img"> | |
180 | <img src="../../../../assets/images/mega-nav/logo-nomad.svg" alt="Nomad Logo" /> | |
181 | </div> | |
182 | <b>Nomad</b> | |
183 | <ul> | |
184 | <li><span class="mega-nav-tag">Run</span></li> | |
185 | </ul> | |
186 | </a> | |
187 | </li> | |
188 | </ul> | |
189 | </div> | |
190 | </div> | |
191 | <div class="mega-nav-body-footer"> | |
192 | <p>Seven elements of the modern Application Lifecycle</p> | |
193 | </div> | |
194 | </div> | |
195 | </div> | |
196 | </div> | |
197 | </div> | |
198 | </div> | |
199 | </div> | |
200 | </div> | |
201 | ||
202 | ||
203 | <div id="header" class="navigation navbar-static-top hidden-print"> | |
204 | <div class="container"> | |
205 | <div class="row"> | |
206 | <div class="col-xs-12"> | |
207 | <div class="navbar-header"> | |
208 | <div class="navbar-brand"> | |
209 | <a href="http://localhost:4567/"> | |
210 | <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 251 61" class="logo" height="50"> | |
211 | <path class="text" fill="#000" fill-rule="nonzero" d="M81.78 19.54h-8.89v-5.31H96.7v5.31h-8.9v26.53h-6"></path> | |
212 | <path class="text" fill="#000" fill-rule="nonzero" d="M102.19 41.77c2.415-.012 4.814-.383 7.12-1.1l.91 4.4c-2.745.99-5.642 1.49-8.56 1.48-7.31 0-9.85-3.39-9.85-9V31.4c0-4.92 2.2-9.08 9.66-9.08s9.13 4.35 9.13 9.37v5h-13v1.2c.05 2.78 1.05 3.88 4.59 3.88zM97.65 32h7.41v-1.18c0-2.2-.67-3.73-3.54-3.73s-3.87 1.53-3.87 3.73V32zm28.54-4.33c-2.148.97-4.217 2.102-6.19 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.6 5.36zm14.24 0c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.58 5.36zm19.51 18.4h-4.78l-.43-1.58c-2.062 1.342-4.47 2.058-6.93 2.06-4.25 0-6.07-2.92-6.07-6.93 0-4.73 2.06-6.55 6.79-6.55h5.59v-2.44c0-2.58-.72-3.49-4.45-3.49-2.17.024-4.33.266-6.45.72l-.72-4.45c2.606-.72 5.296-1.09 8-1.1 7.31 0 9.47 2.58 9.47 8.41l-.02 15.35zm-5.83-8.8h-4.3c-1.91 0-2.44.53-2.44 2.29s.53 2.34 2.34 2.34c1.544-.024 3.058-.436 4.4-1.2v-3.43zm23.75-19.79c-1.1-.237-2.224-.364-3.35-.38-2.29 0-2.63 1-2.63 2.77v2.92h5.93l-.33 4.64h-5.59v18.64h-5.83V27.43h-3.73v-4.64h3.73v-3.25c0-4.83 2.25-7.22 7.41-7.22 1.69-.006 3.372.22 5 .67l-.61 4.49zm11.38 29.07c-8 0-10.13-4.4-10.13-9.18v-5.88c0-4.78 2.15-9.18 10.13-9.18s10.13 4.4 10.13 9.18v5.88c.01 4.78-2.15 9.18-10.13 9.18zm0-19.27c-3.11 0-4.3 1.39-4.3 4v6.26c0 2.63 1.2 4 4.3 4 3.1 0 4.3-1.39 4.3-4V31.3c0-2.63-1.19-4.02-4.3-4.02zm25.14.39c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.954-2.313 6.12-3.06l.58 5.36zm16.02 18.4V29.82c0-1.24-.53-1.86-1.86-1.86-2.137.254-4.2.934-6.07 2v16.11h-5.83V22.79h4.45l.57 2c2.906-1.47 6.088-2.315 9.34-2.48 1.843-.174 3.6.82 4.4 2.49 2.91-1.49 6.104-2.34 9.37-2.49 3.87 0 5.26 2.72 5.26 6.88v16.88h-5.83V29.82c0-1.24-.53-1.86-1.86-1.86-2.14.236-4.208.917-6.07 2v16.11h-5.87z"></path> | |
213 | <path class="rect-dark" fill="#4040B2" d="M36.4 39.13l16.4-9.46V10.72L36.4 20.2"></path> | |
214 | <path class="rect-light" fill="#5C4EE5" d="M18.2 10.72l16.4 9.48v18.93l-16.4-9.47"></path> | |
215 | <path class="rect-light" fill="#5C4EE5" d="M0 19.09l16.4 9.47V9.62L0 .15m18.2 50.53l16.4 9.47V41.21l-16.4-9.47"></path> | |
216 | </svg> | |
217 | ||
218 | </a> | |
219 | </div> | |
220 | <button class="navbar-toggle" type="button"> | |
221 | <span class="sr-only">Toggle navigation</span> | |
222 | <span class="icon-bar"></span> | |
223 | <span class="icon-bar"></span> | |
224 | <span class="icon-bar"></span> | |
225 | </button> | |
226 | </div> | |
227 | ||
228 | ||
229 | <div class="buttons hidden-xs"> | |
230 | <nav class="navigation-links" role="navigation"> | |
231 | <ul class="main-links nav navbar-nav navbar-right"> | |
232 | <li class="visible-sm"><span><a href="http://localhost:4567/index.html">Info</a><svg width="9" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M8.811 1.067a.612.612 0 0 0 0-.884.655.655 0 0 0-.908 0L4.5 3.491 1.097.183a.655.655 0 0 0-.909 0 .615.615 0 0 0 0 .884l3.857 3.75a.655.655 0 0 0 .91 0l3.856-3.75z" fill-rule="evenodd"/></svg></span> | |
233 | <ul class="dropdown"> | |
234 | <li><a href="http://localhost:4567/intro/index.html">Intro</a></li> | |
235 | <li><a href="https://learn.hashicorp.com/terraform/">Learn</a></li> | |
236 | <li><a href="http://localhost:4567/community.html">Community</a></li> | |
237 | <li><a href="https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise</a></li> | |
238 | </ul> | |
239 | </li> | |
240 | <li class="hidden-sm"><a href="http://localhost:4567/intro/index.html">Intro</a></li> | |
241 | <li class="hidden-sm"><a href="https://learn.hashicorp.com/terraform/">Learn</a></li> | |
242 | <li><span><a href="http://localhost:4567/docs/index.html">Docs</a><svg width="9" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M8.811 1.067a.612.612 0 0 0 0-.884.655.655 0 0 0-.908 0L4.5 3.491 1.097.183a.655.655 0 0 0-.909 0 .615.615 0 0 0 0 .884l3.857 3.75a.655.655 0 0 0 .91 0l3.856-3.75z" fill-rule="evenodd"/></svg></span> | |
243 | <ul class="dropdown"> | |
244 | <li><a href="http://localhost:4567/docs/index.html">Docs Home</a></li> | |
245 | <li><a href="http://localhost:4567/docs/cli-index.html">Terraform CLI</a></li> | |
246 | <li><a href="http://localhost:4567/docs/enterprise/index.html">Terraform Enterprise</a></li> | |
247 | <li><a href="http://localhost:4567/docs/providers/index.html">Providers</a></li> | |
248 | <li><a href="http://localhost:4567/docs/glossary.html">Glossary</a></li> | |
249 | <li><a href="http://localhost:4567/guides/index.html">Guides and Whitepapers</a></li> | |
250 | <li><a href="http://localhost:4567/docs/registry/index.html">Registry</a></li> | |
251 | <li><a href="http://localhost:4567/docs/github-actions/index.html">GitHub Actions</a></li> | |
252 | <li><a href="http://localhost:4567/docs/extend/index.html">Extending Terraform</a></li> | |
253 | ||
254 | </ul> | |
255 | </li> | |
256 | <li class="hidden-sm"><a href="http://localhost:4567/community.html">Community</a></li> | |
257 | <li class="hidden-sm"><a href="https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise</a></li> | |
258 | <li> | |
259 | <a href="http://localhost:4567/downloads.html"> | |
260 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 28 28" enable-background="new 0 0 28 28" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"> | |
261 | <path d="M28 0H0v28h28V0zM13.8 22.9L7 17.3l2-2.4 3.2 2.6V7h3.2v10.5l3.2-2.6 2 2.4L13.8 22.9z"></path> | |
262 | </svg> | |
263 | Download | |
264 | </a> | |
265 | </li> | |
266 | <li> | |
267 | <a href="https://github.com/hashicorp/terraform"> | |
268 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 28 28" enable-background="new 0 0 28 28" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"> | |
269 | <path d="M28 0H0v28h11.4c0 0 0-1.3 0-2.4C7.7 26.4 7 23.9 7 23.9 6.4 22.4 5.5 22 5.5 22c-1.2-0.8 0.1-0.8 0.1-0.8 1.3 0.1 2 1.4 2 1.4 1.2 2 3 1.4 3.8 1.1 0.1-0.8 0.5-1.4 0.9-1.8 -2.9-0.3-6-1.5-6-6.5 0-1.4 0.5-2.6 1.3-3.5C7.5 11.5 7 10.2 7.8 8.4c0 0 1.1-0.4 3.6 1.3 1-0.3 2.2-0.4 3.3-0.4 1.1 0 2.2 0.2 3.3 0.4 2.5-1.7 3.6-1.3 3.6-1.3 0.7 1.8 0.3 3.1 0.1 3.5 0.8 0.9 1.3 2.1 1.3 3.5 0 5-3.1 6.1-6 6.5 0.5 0.4 0.9 1.2 0.9 2.4 0 1.8 0 3.7 0 3.7H28V0z"></path> | |
270 | </svg> | |
271 | GitHub | |
272 | </a> | |
273 | </li> | |
274 | </ul> | |
275 | </nav> | |
276 | </div> | |
277 | </div> | |
278 | </div> | |
279 | </div> | |
280 | </div> | |
281 | ||
282 | ||
283 | <div class="sidebar-overlay"></div> | |
284 | ||
285 | <aside class="sidebar" role="navigation"> | |
286 | <div class="sidebar-header"> | |
287 | <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 251 61" class="logo" height="42"> | |
288 | <path class="text" fill="#000" fill-rule="nonzero" d="M81.78 19.54h-8.89v-5.31H96.7v5.31h-8.9v26.53h-6"></path> | |
289 | <path class="text" fill="#000" fill-rule="nonzero" d="M102.19 41.77c2.415-.012 4.814-.383 7.12-1.1l.91 4.4c-2.745.99-5.642 1.49-8.56 1.48-7.31 0-9.85-3.39-9.85-9V31.4c0-4.92 2.2-9.08 9.66-9.08s9.13 4.35 9.13 9.37v5h-13v1.2c.05 2.78 1.05 3.88 4.59 3.88zM97.65 32h7.41v-1.18c0-2.2-.67-3.73-3.54-3.73s-3.87 1.53-3.87 3.73V32zm28.54-4.33c-2.148.97-4.217 2.102-6.19 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.6 5.36zm14.24 0c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.58 5.36zm19.51 18.4h-4.78l-.43-1.58c-2.062 1.342-4.47 2.058-6.93 2.06-4.25 0-6.07-2.92-6.07-6.93 0-4.73 2.06-6.55 6.79-6.55h5.59v-2.44c0-2.58-.72-3.49-4.45-3.49-2.17.024-4.33.266-6.45.72l-.72-4.45c2.606-.72 5.296-1.09 8-1.1 7.31 0 9.47 2.58 9.47 8.41l-.02 15.35zm-5.83-8.8h-4.3c-1.91 0-2.44.53-2.44 2.29s.53 2.34 2.34 2.34c1.544-.024 3.058-.436 4.4-1.2v-3.43zm23.75-19.79c-1.1-.237-2.224-.364-3.35-.38-2.29 0-2.63 1-2.63 2.77v2.92h5.93l-.33 4.64h-5.59v18.64h-5.83V27.43h-3.73v-4.64h3.73v-3.25c0-4.83 2.25-7.22 7.41-7.22 1.69-.006 3.372.22 5 .67l-.61 4.49zm11.38 29.07c-8 0-10.13-4.4-10.13-9.18v-5.88c0-4.78 2.15-9.18 10.13-9.18s10.13 4.4 10.13 9.18v5.88c.01 4.78-2.15 9.18-10.13 9.18zm0-19.27c-3.11 0-4.3 1.39-4.3 4v6.26c0 2.63 1.2 4 4.3 4 3.1 0 4.3-1.39 4.3-4V31.3c0-2.63-1.19-4.02-4.3-4.02zm25.14.39c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.954-2.313 6.12-3.06l.58 5.36zm16.02 18.4V29.82c0-1.24-.53-1.86-1.86-1.86-2.137.254-4.2.934-6.07 2v16.11h-5.83V22.79h4.45l.57 2c2.906-1.47 6.088-2.315 9.34-2.48 1.843-.174 3.6.82 4.4 2.49 2.91-1.49 6.104-2.34 9.37-2.49 3.87 0 5.26 2.72 5.26 6.88v16.88h-5.83V29.82c0-1.24-.53-1.86-1.86-1.86-2.14.236-4.208.917-6.07 2v16.11h-5.87z"></path> | |
290 | <path class="rect-dark" fill="#4040B2" d="M36.4 39.13l16.4-9.46V10.72L36.4 20.2"></path> | |
291 | <path class="rect-light" fill="#5C4EE5" d="M18.2 10.72l16.4 9.48v18.93l-16.4-9.47"></path> | |
292 | <path class="rect-light" fill="#5C4EE5" d="M0 19.09l16.4 9.47V9.62L0 .15m18.2 50.53l16.4 9.47V41.21l-16.4-9.47"></path> | |
293 | </svg> | |
294 | ||
295 | </div> | |
296 | ||
297 | <ul class="nav sidebar-nav"> | |
298 | <li><a href="http://localhost:4567/intro/index.html">Intro</a></li> | |
299 | <li><a href="https://learn.hashicorp.com/terraform/">Learn</a></li> | |
300 | <li><a href="http://localhost:4567/community.html">Community</a></li> | |
301 | <li><a href="https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise</a></li> | |
302 | </ul> | |
303 | ||
304 | <div class="divider"></div> | |
305 | ||
306 | <ul class="external nav sidebar-nav"> | |
307 | <li> | |
308 | <a href="http://localhost:4567/downloads.html"> | |
309 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 28 28" enable-background="new 0 0 28 28" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"> | |
310 | <path d="M28 0H0v28h28V0zM13.8 22.9L7 17.3l2-2.4 3.2 2.6V7h3.2v10.5l3.2-2.6 2 2.4L13.8 22.9z"></path> | |
311 | </svg> | |
312 | Download | |
313 | </a> | |
314 | </li> | |
315 | <li> | |
316 | <a href="https://github.com/hashicorp/terraform"> | |
317 | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 28 28" enable-background="new 0 0 28 28" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"> | |
318 | <path d="M28 0H0v28h11.4c0 0 0-1.3 0-2.4C7.7 26.4 7 23.9 7 23.9 6.4 22.4 5.5 22 5.5 22c-1.2-0.8 0.1-0.8 0.1-0.8 1.3 0.1 2 1.4 2 1.4 1.2 2 3 1.4 3.8 1.1 0.1-0.8 0.5-1.4 0.9-1.8 -2.9-0.3-6-1.5-6-6.5 0-1.4 0.5-2.6 1.3-3.5C7.5 11.5 7 10.2 7.8 8.4c0 0 1.1-0.4 3.6 1.3 1-0.3 2.2-0.4 3.3-0.4 1.1 0 2.2 0.2 3.3 0.4 2.5-1.7 3.6-1.3 3.6-1.3 0.7 1.8 0.3 3.1 0.1 3.5 0.8 0.9 1.3 2.1 1.3 3.5 0 5-3.1 6.1-6 6.5 0.5 0.4 0.9 1.2 0.9 2.4 0 1.8 0 3.7 0 3.7H28V0z"></path> | |
319 | </svg> | |
320 | GitHub | |
321 | </a> | |
322 | </li> | |
323 | </ul> | |
324 | ||
325 | <div class="divider"></div> | |
326 | ||
327 | <ul class="nav sidebar-nav"> | |
328 | <li><a href="http://localhost:4567/docs/index.html">Docs:</a></li> | |
329 | <li><a href="http://localhost:4567/docs/index.html">Docs Home</a></li> | |
330 | <li><a href="http://localhost:4567/docs/cli-index.html">Terraform CLI</a></li> | |
331 | <li><a href="http://localhost:4567/docs/enterprise/index.html">Terraform Enterprise</a></li> | |
332 | <li><a href="http://localhost:4567/docs/providers/index.html">Providers</a></li> | |
333 | <li><a href="http://localhost:4567/docs/glossary.html">Glossary</a></li> | |
334 | <li><a href="http://localhost:4567/guides/index.html">Guides and Whitepapers</a></li> | |
335 | <li><a href="http://localhost:4567/docs/registry/index.html">Registry</a></li> | |
336 | <li><a href="http://localhost:4567/docs/github-actions/index.html">GitHub Actions</a></li> | |
337 | <li><a href="http://localhost:4567/docs/extend/index.html">Extending Terraform</a></li> | |
338 | ||
339 | </ul> | |
340 | ||
341 | </aside> | |
342 | ||
343 | ||
344 | <div class="container"> | |
345 | <div class="row"> | |
346 | <div id="docs-sidebar" class="col-sm-4 col-md-3 col-xs-12 hidden-print" role="complementary"> | |
347 | <a href="domain.html#inner" id="screenreader-skip" class="sr-only sr-only-focusable">Skip to content</a> | |
348 | <a href="domain.html#inner" id="mobile-skip" class="visible-xs">(Skip to content ⤵︎)</a> | |
349 | <div id="controls-placeholder" style="display: none;"></div> | |
350 | <div class="docs-sidebar hidden-print affix-top" role="complementary"> | |
351 | <ul class="nav docs-sidenav"> | |
352 | <li> | |
353 | <a href="http://localhost:4567/docs/providers/index.html">All Providers</a> | |
354 | </li> | |
355 | ||
356 | <li> | |
357 | <a href="../index.html">Mailgun Provider</a> | |
358 | </li> | |
359 | ||
360 | <li> | |
361 | <a href="domain.html#">Resources</a> | |
362 | <ul class="nav nav-visible"> | |
363 | <li> | |
364 | <a href="domain.html" class="current-page">mailgun_domain</a> | |
365 | </li> | |
366 | <li> | |
367 | <a href="route.html">mailgun_route</a> | |
368 | </li> | |
369 | </ul> | |
370 | </li> | |
371 | </ul> | |
372 | </div> | |
373 | ||
374 | </div> | |
375 | ||
376 | <div id="inner" class="col-sm-8 col-md-9 col-xs-12" role="main"> | |
377 | ||
378 | <h1 id="mailgun_domain"> | |
379 | <a name="mailgun_domain" class="anchor" href="domain.html#mailgun_domain">»</a> | |
380 | mailgun_domain | |
381 | </h1> | |
382 | <p>The domain resource allows Mailgun domain to be managed by Terraform.</p> | |
383 | <h2 id="example-usage"> | |
384 | <a name="example-usage" class="anchor" href="domain.html#example-usage">»</a> | |
385 | Example Usage | |
386 | </h2> | |
387 | <div class="highlight"><pre class="highlight hcl"><code><span class="n">resource</span> <span class="s2">"mailgun_domain"</span> <span class="s2">"example"</span> <span class="p">{</span> | |
388 | <span class="nb">name</span><span class="o">=</span><span class="s2">"domain.com"</span> | |
389 | <span class="n">spam_action</span><span class="o">=</span><span class="s2">"block"</span> | |
390 | <span class="n">smtp_password</span><span class="o">=</span><span class="s2">"password"</span> | |
391 | <span class="n">wildcard</span><span class="o">=</span><span class="kp">true</span> | |
392 | <span class="n">force_dkim_authority</span><span class="o">=</span><span class="kp">true</span> | |
393 | <span class="n">dkim_key_size</span><span class="o">=</span><span class="mi">1024</span> | |
394 | <span class="n">ips</span><span class="o">=</span><span class="p">[</span><span class="s2">"192.161.0.1"</span><span class="p">,</span> <span class="s2">"192.168.0.2"</span><span class="p">]</span> | |
395 | <span class="n">credentials</span><span class="p">{</span> | |
396 | <span class="n">login</span><span class="o">=</span><span class="s2">"login"</span> | |
397 | <span class="n">password</span><span class="o">=</span><span class="s2">"password"</span> | |
398 | <span class="p">}</span> | |
399 | <span class="n">open_tracking_settings_active</span><span class="o">=</span><span class="kp">true</span> | |
400 | <span class="n">click_tracking_settings_active</span><span class="o">=</span><span class="kp">true</span> | |
401 | <span class="n">unsubscribe_tracking_settings_active</span><span class="o">=</span><span class="kp">true</span> | |
402 | <span class="n">unsubscribe_tracking_settings_html_footer</span><span class="o">=</span><span class="s2">"<p>footer</p>"</span> | |
403 | <span class="n">unsubscribe_tracking_settings_text_footer</span><span class="o">=</span><span class="s2">"footer"</span> | |
404 | <span class="n">require_tls</span><span class="o">=</span><span class="kp">true</span> | |
405 | <span class="n">skip_verification</span><span class="o">=</span><span class="kp">true</span> | |
406 | <span class="p">}</span> | |
407 | </code></pre></div><h2 id="argument-reference"> | |
408 | <a name="argument-reference" class="anchor" href="domain.html#argument-reference">»</a> | |
409 | Argument Reference | |
410 | </h2> | |
411 | <p>The following arguments are supported:</p> | |
412 | ||
413 | <ul> | |
414 | <li><a name="name" /><a href="domain.html#name"><code>name</code></a> - (Required) Name of the domain | |
415 | </li> | |
416 | <li><a name="spam_action" /><a href="domain.html#spam_action"><code>spam_action</code></a> - (Optional) "disabled", "block", or "tag".If "disabled", no spam filtering will occur for inbound messages.If "block", inbound spam messages will not be delivered.If "tag", inbound messages will be tagged with a spam header. See Spam Filter.Defaults to disabled. | |
417 | </li> | |
418 | <li><a name="smtp_password" /><a href="domain.html#smtp_password"><code>smtp_password</code></a> - (Optional) Password for SMTP authentication | |
419 | </li> | |
420 | <li><a name="wildcard" /><a href="domain.html#wildcard"><code>wildcard</code></a> - (Optional) Determines whether the domain will accept email for sub-domains when sending messages.Defaults to false. | |
421 | </li> | |
422 | <li><a name="force_dkim_authority" /><a href="domain.html#force_dkim_authority"><code>force_dkim_authority</code></a> - (Optional) If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account.If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. Defaults to false | |
423 | </li> | |
424 | <li><a name="dkim_key_size" /><a href="domain.html#dkim_key_size"><code>dkim_key_size</code></a> - (Optional) 1024 or 2048. Set the length of your domain’s generated DKIM key. Defaults to 1024. | |
425 | </li> | |
426 | <li><a name="ips" /><a href="domain.html#ips"><code>ips</code></a> - (Optional) An optional, comma-separated list of IP addresses to be assigned to this domain. If not specified, all dedicated IP addresses on the account will be assigned. If the request cannot be fulfilled (e.g. a requested IP is not assigned to the account, etc), a 400 will be returned. | |
427 | </li> | |
428 | <li><a name="credentials" /><a href="domain.html#credentials"><code>credentials</code></a> - (Optional) SMTP credentials for the domain | |
429 | </li> | |
430 | <li><a name="open_tracking_settings_active" /><a href="domain.html#open_tracking_settings_active"><code>open_tracking_settings_active</code></a> - (Optional) true to enable open tracking. Defauls to false | |
431 | </li> | |
432 | <li><a name="click_tracking_settings_active" /><a href="domain.html#click_tracking_settings_active"><code>click_tracking_settings_active</code></a> - (Optional) true to enable click tracking. Defauls to false | |
433 | </li> | |
434 | <li><a name="unsubscribe_tracking_settings_active" /><a href="domain.html#unsubscribe_tracking_settings_active"><code>unsubscribe_tracking_settings_active</code></a> - (Optional) true to enable unsubscribe tracking. Defauls to false | |
435 | </li> | |
436 | <li><a name="unsubscribe_tracking_settings_html_footer" /><a href="domain.html#unsubscribe_tracking_settings_html_footer"><code>unsubscribe_tracking_settings_html_footer</code></a> - (Optional)Custom HTML version of unsubscribe footer.Defaults to "\n<br>\n<p><a hre=\"%unsubscribe_url%\">unsubscribe</a></p>\n" | |
437 | </li> | |
438 | <li><a name="unsubscribe_tracking_settings_text_footer" /><a href="domain.html#unsubscribe_tracking_settings_text_footer"><code>unsubscribe_tracking_settings_text_footer</code></a> - (Optional) Custom text version of unsubscribe footer. Defaults to "\n\nTo unsubscribe click: <%unsubscribe_url%>\n\n" | |
439 | </li> | |
440 | <li><a name="require_tls" /><a href="domain.html#require_tls"><code>require_tls</code></a> - (Optional) If set to true, this requires the message only be sent over a TLS connection. If a TLS connection can not be established, Mailgun will not deliver the message.If set to false, Mailgun will still try and upgrade the connection, but if Mailgun cannot, the message will be delivered over a plaintext SMTP connection. Defaults to false. | |
441 | </li> | |
442 | <li><a name="skip_verification" /><a href="domain.html#skip_verification"><code>skip_verification</code></a> - (Optional)If set to true, the certificate and hostname will not be verified when trying to establish a TLS connection and Mailgun will accept any certificate during delivery. If set to false, Mailgun will verify the certificate and hostname. If either one can not be verified, a TLS connection will not be established. Defaults to false. | |
443 | The <code>credentials</code> object supports the following: | |
444 | </li> | |
445 | <li><a name="login" /><a href="domain.html#login"><code>login</code></a> - (Required) The user name | |
446 | </li> | |
447 | <li><a name="password" /><a href="domain.html#password"><code>password</code></a> - (Required) A password for the SMTP credentials. (Length Min 5, Max 32) | |
448 | </li> | |
449 | </ul> | |
450 | <h2 id="attributes-reference"> | |
451 | <a name="attributes-reference" class="anchor" href="domain.html#attributes-reference">»</a> | |
452 | Attributes Reference | |
453 | </h2> | |
454 | <p>The following attribute is exported:</p> | |
455 | ||
456 | <ul> | |
457 | <li><a name="smtp_login" /><a href="domain.html#smtp_login"><code>smtp_login</code></a> - An username for the SMTP credentials. | |
458 | </li> | |
459 | <li><a name="created_at" /><a href="domain.html#created_at"><code>created_at</code></a> - The date of creation of the domain. | |
460 | </li> | |
461 | <li><a name="state" /><a href="domain.html#state"><code>state</code></a> - The state of the domain. | |
462 | </li> | |
463 | <li><a name="receiving_records" /><a href="domain.html#receiving_records"><code>receiving_records</code></a> - DNS records for receiving. | |
464 | </li> | |
465 | <li><a name="sending_records" /><a href="domain.html#sending_records"><code>sending_records</code></a> - DNS records for sending. | |
466 | The <code>receiving_records</code> <code>sending_records</code> and object exports the following: | |
467 | </li> | |
468 | <li><a name="name-1" /><a href="domain.html#name-1"><code>name</code></a> - The name of the record. | |
469 | </li> | |
470 | <li><a name="priority" /><a href="domain.html#priority"><code>priority</code></a> - The priority of the record lower value means a more important priority. | |
471 | </li> | |
472 | <li><a name="record_type" /><a href="domain.html#record_type"><code>record_type</code></a> - The type of record. | |
473 | </li> | |
474 | <li><a name="valid" /><a href="domain.html#valid"><code>valid</code></a> - Wether the record is valid or not. | |
475 | </li> | |
476 | <li><a name="value" /><a href="domain.html#value"><code>value</code></a> - The value of the record. | |
477 | </li> | |
478 | </ul> | |
479 | <h2 id="import"> | |
480 | <a name="import" class="anchor" href="domain.html#import">»</a> | |
481 | Import | |
482 | </h2> | |
483 | <p>Mailgun domain can be imported using the domain name, e.g.</p> | |
484 | <div class="highlight"><pre class="highlight plaintext"><code>tf import mailgun_domain.example domain.com | |
485 | ||
486 | </code></pre></div> | |
487 | ||
488 | </div> | |
489 | </div> | |
490 | </div> | |
491 | ||
492 | ||
493 | <div id="footer" class="navigation hidden-print"> | |
494 | <div class="container"> | |
495 | <div class="row"> | |
496 | <div class="col-xs-12"> | |
497 | <ul class="footer-links nav navbar-nav"> | |
498 | <li><a href="http://localhost:4567/intro/index.html">Intro</a></li> | |
499 | <li><a href="http://localhost:4567/docs/index.html">Docs</a></li> | |
500 | <li><a href="http://localhost:4567/docs/extend/index.html">Extend</a></li> | |
501 | <li><a href="https://www.hashicorp.com/privacy">Privacy</a></li> | |
502 | <li><a href="http://localhost:4567/security.html">Security</a></li> | |
503 | <li><a href="http://localhost:4567/assets/files/press-kit.zip">Press Kit</a></li> | |
504 | </ul> | |
505 | <ul class="footer-links nav navbar-nav navbar-right"> | |
506 | <li><a href="https://github.com/terraform-providers/terraform-provider-mailgun/edit/master/website/docs/r/domain.html.markdown">Edit this page</a></li> | |
507 | </ul> | |
508 | </div> | |
509 | </div> | |
510 | </div> | |
511 | </div> | |
512 | ||
513 | <script type="application/ld+json"> | |
514 | { | |
515 | "@context": "http://schema.org", | |
516 | "@type": "Product", | |
517 | "name": "Terraform", | |
518 | "alternateName": "Terraform by HashiCorp", | |
519 | "manufacturer": "HashiCorp", | |
520 | "url": "https://www.terraform.io", | |
521 | "logo": "https://www.terraform.io/assets/images/logo-hashicorp.svg", | |
522 | "sameAs": [ | |
523 | "https://github.com/hashicorp/terraform" | |
524 | ] | |
525 | } | |
526 | </script> | |
527 | </body> | |
528 | </html> |