Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shebang-labs/terraform-provider-postmark

Terraform Provider for postmark
https://github.com/shebang-labs/terraform-provider-postmark

devops emails postmark provider terraform

Last synced: about 8 hours ago
JSON representation

Terraform Provider for postmark

Awesome Lists containing this project

README

        

# terraform-provider-postmark
This provider is built to handel terraform for a well-known mailing system called [postmark](https://postmarkapp.com/)

# Requirements
Terraform 1.3.x
Go 1.19.1 (to build the provider plugin)

# Installation

```
$ git clone [email protected]:shebang-labs/terraform-provider-postmark.git
$ make
```

# Usage
```
provider "postmark" {
account_token = "xxxxxxxxxxxxxxxxxxxx"
}
```
# Run Tests
Run the following:
```
POSTMARK_ACCOUNT_TOKEN=xxxxxxxxxxxxxxxxxxxxxx TF_ACC=1 go test
```

Note: you need to replace the xxxxxxxxx with your account token.
# Data Sources Example

The next line will create a datasource that have all servers data from your postmark portal

```
data "postmark_servers" "servers" {}
```

# Resources

## Server

You can edit/delete for edit you can edit those two fields

```

resource "postmark_server" "s1" {
name = "Server 1"
color = "blue"
delivery_type = "live"
}
```

## Stream

You can edit/delete for edit you can edit description and name only

```
resource "postmark_stream" "st1" {
stream_id = "transactional-dev-1"
name = "Stream 1"
description = "This is my first transactional stream"
message_stream_type = "Transactional"
server_token = "xxxxxxxxxxxxxxxxxxxx"
}
```

## Domain

You can edit/delete for edit you can only edit the return_path_domain
```
resource "postmark_domain" "d1" {
name = "exmaple.com"
return_path_domain = "test.example.com"
}
```