Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shebang-labs/terraform-provider-postmark
- Owner: shebang-labs
- License: mit
- Created: 2022-09-30T23:47:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T23:37:56.000Z (over 1 year ago)
- Last Synced: 2023-06-16T00:25:43.454Z (over 1 year ago)
- Topics: devops, emails, postmark, provider, terraform
- Language: Go
- Homepage: https://postmarkapp.com/
- Size: 77.1 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ExampleThe 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"
}
```