Skip to content

Feature/team emails #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ rust-embedded-provisioning
This repository provides the [Terraform](https://www.terraform.io/)
configuration for [Amazon Web Services](https://aws.amazon.com) infrastructure
used by the [Rust Embedded](https://github.com/rust-embedded) organization.

## DNS

DNS records are configured in [route53.tf](route53.tf) and manually applied using terraform.

## Mail

`teams.rust-embedded.org` mailing lists are managed using a dedicated mailgun account that @ryankurte and @nastevens have access to.
The [teams.rust-embedded.org.json](teams.rust-embedded.org.json) file contains a list of team email addresses that can be synchronized to a mailgun instance using [ryankurte/mg-cli](https://github.com/ryankurte/mg-cli), synchronisation and user mangement are currently manual.

27 changes: 27 additions & 0 deletions route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ resource "aws_route53_record" "rust_embedded_org_www" {
records = [ "rust-embedded.org" ]
}

// MX records for teams.rust-embedded.org email
resource "aws_route53_record" "teams_rust_embedded_org_mx" {
zone_id = "${aws_route53_zone.rust_embedded_org.zone_id}"
name = "teams.rust-embedded.org."
type = "MX"
ttl = "300"
records = [ "10 mxa.mailgun.org.", "10 mxb.mailgun.org." ]
}

// SPF record for teams.rust-embedded.org email
resource "aws_route53_record" "teams_rust_embedded_org_spf" {
zone_id = "${aws_route53_zone.rust_embedded_org.zone_id}"
name = "teams.rust-embedded.org."
type = "TXT"
ttl = "300"
records = [ "v=spf1 include:mailgun.org ~all" ]
}

// DomainKey record for teams.rust-embedded.org email
resource "aws_route53_record" "teams_rust_embedded_org_domainkey" {
zone_id = "${aws_route53_zone.rust_embedded_org.zone_id}"
name = "mx._domainkey.teams.rust-embedded.org."
type = "TXT"
ttl = "300"
records = [ "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCl4e0N3NmgGI0m5dhFYlHqRyfpbViTdidprT+BDGPzyimP+MG8tV3Wj7VG5umZDAIis51DiUXWcQJADCfVYz7fnb0sV1mFoX9bA1SsKhr11V2DPK9a4IZ7g9JD8kjlY8bpThLBk9RP3d13aS1VKZ2Tm0WYSK1egB4NHVGgLJPJwwIDAQAB" ]
}

resource "aws_route53_record" "rust_embedded_org_docs" {
zone_id = "${aws_route53_zone.rust_embedded_org.zone_id}"
name = "docs.rust-embedded.org."
Expand Down
52 changes: 52 additions & 0 deletions teams.rust-embedded.org.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"Address": "[email protected]",
"Name": "cortex-a",
"Description": "Cortex A Team"
},
{
"Address": "[email protected]",
"Name": "cortex-m",
"Description": "Cortex-m Team"
},
{
"Address": "[email protected]",
"Name": "cortex-r",
"Description": "Cortex-R Team"
},
{
"Address": "[email protected]",
"Name": "embedded-hal",
"Description": "Embedded Hal Team"
},
{
"Address": "[email protected]",
"Name": "embedded-linux",
"Description": "Embedded Linux Team"
},
{
"Address": "[email protected]",
"Name": "infrastructure",
"Description": "Infrastructure Team"
},
{
"Address": "[email protected]",
"Name": "irr-2018",
"Description": "Increasing Rust Reach 2018 Team"
},
{
"Address": "[email protected]",
"Name": "msp430",
"Description": "msp430 Team"
},
{
"Address": "[email protected]",
"Name": "resources",
"Description": "Resources Team"
},
{
"Address": "[email protected]",
"Name": "risk-v",
"Description": "RISK-V team"
}
]
101 changes: 100 additions & 1 deletion terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 3,
"terraform_version": "0.11.10",
"serial": 16,
"serial": 19,
"lineage": "06aae676-abab-bb3e-6cf0-33dcc3b68c52",
"modules": [
{
Expand Down Expand Up @@ -364,13 +364,97 @@
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.teams_rust_embedded_org_domainkey": {
"type": "aws_route53_record",
"depends_on": [
"aws_route53_zone.rust_embedded_org"
],
"primary": {
"id": "Z1K6QDM5H6MZNC_mx._domainkey.teams.rust-embedded.org._TXT",
"attributes": {
"allow_overwrite": "true",
"fqdn": "mx._domainkey.teams.rust-embedded.org",
"health_check_id": "",
"id": "Z1K6QDM5H6MZNC_mx._domainkey.teams.rust-embedded.org._TXT",
"name": "mx._domainkey.teams.rust-embedded.org",
"records.#": "1",
"records.2697817120": "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCl4e0N3NmgGI0m5dhFYlHqRyfpbViTdidprT+BDGPzyimP+MG8tV3Wj7VG5umZDAIis51DiUXWcQJADCfVYz7fnb0sV1mFoX9bA1SsKhr11V2DPK9a4IZ7g9JD8kjlY8bpThLBk9RP3d13aS1VKZ2Tm0WYSK1egB4NHVGgLJPJwwIDAQAB",
"set_identifier": "",
"ttl": "300",
"type": "TXT",
"zone_id": "Z1K6QDM5H6MZNC"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.teams_rust_embedded_org_mx": {
"type": "aws_route53_record",
"depends_on": [
"aws_route53_zone.rust_embedded_org"
],
"primary": {
"id": "Z1K6QDM5H6MZNC_teams.rust-embedded.org._MX",
"attributes": {
"allow_overwrite": "true",
"fqdn": "teams.rust-embedded.org",
"id": "Z1K6QDM5H6MZNC_teams.rust-embedded.org._MX",
"name": "teams.rust-embedded.org",
"records.#": "2",
"records.2664913317": "10 mxa.mailgun.org.",
"records.3803610238": "10 mxb.mailgun.org.",
"ttl": "300",
"type": "MX",
"zone_id": "Z1K6QDM5H6MZNC"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.teams_rust_embedded_org_spf": {
"type": "aws_route53_record",
"depends_on": [
"aws_route53_zone.rust_embedded_org"
],
"primary": {
"id": "Z1K6QDM5H6MZNC_teams.rust-embedded.org._TXT",
"attributes": {
"allow_overwrite": "true",
"fqdn": "teams.rust-embedded.org",
"health_check_id": "",
"id": "Z1K6QDM5H6MZNC_teams.rust-embedded.org._TXT",
"name": "teams.rust-embedded.org",
"records.#": "1",
"records.1008113961": "v=spf1 include:mailgun.org ~all",
"set_identifier": "",
"ttl": "300",
"type": "TXT",
"zone_id": "Z1K6QDM5H6MZNC"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_zone.areweembeddedyet_com": {
"type": "aws_route53_zone",
"depends_on": [],
"primary": {
"id": "Z1Q9EUUS8L74PK",
"attributes": {
"comment": "Managed by Terraform",
"delegation_set_id": "",
"force_destroy": "false",
"id": "Z1Q9EUUS8L74PK",
"name": "areweembeddedyet.com.",
Expand All @@ -380,6 +464,9 @@
"name_servers.2": "ns-393.awsdns-49.com",
"name_servers.3": "ns-683.awsdns-21.net",
"tags.%": "0",
"vpc.#": "0",
"vpc_id": "",
"vpc_region": "",
"zone_id": "Z1Q9EUUS8L74PK"
},
"meta": {},
Expand All @@ -395,6 +482,7 @@
"id": "Z2GJVQBHJNLGYL",
"attributes": {
"comment": "Managed by Terraform",
"delegation_set_id": "",
"force_destroy": "false",
"id": "Z2GJVQBHJNLGYL",
"name": "rust-embedded.com.",
Expand All @@ -404,6 +492,9 @@
"name_servers.2": "ns-218.awsdns-27.com",
"name_servers.3": "ns-879.awsdns-45.net",
"tags.%": "0",
"vpc.#": "0",
"vpc_id": "",
"vpc_region": "",
"zone_id": "Z2GJVQBHJNLGYL"
},
"meta": {},
Expand All @@ -419,6 +510,7 @@
"id": "Z1K6QDM5H6MZNC",
"attributes": {
"comment": "Managed by Terraform",
"delegation_set_id": "",
"force_destroy": "false",
"id": "Z1K6QDM5H6MZNC",
"name": "rust-embedded.org.",
Expand All @@ -428,6 +520,9 @@
"name_servers.2": "ns-298.awsdns-37.com",
"name_servers.3": "ns-758.awsdns-30.net",
"tags.%": "0",
"vpc.#": "0",
"vpc_id": "",
"vpc_region": "",
"zone_id": "Z1K6QDM5H6MZNC"
},
"meta": {},
Expand All @@ -452,6 +547,7 @@
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "areweembeddedyet.com",
"lifecycle_rule.#": "0",
"logging.#": "0",
"region": "us-east-1",
"replication_configuration.#": "0",
Expand Down Expand Up @@ -491,6 +587,7 @@
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "rust-embedded.com",
"lifecycle_rule.#": "0",
"logging.#": "0",
"region": "us-east-1",
"replication_configuration.#": "0",
Expand Down Expand Up @@ -530,6 +627,7 @@
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "www.areweembeddedyet.com",
"lifecycle_rule.#": "0",
"logging.#": "0",
"region": "us-east-1",
"replication_configuration.#": "0",
Expand Down Expand Up @@ -569,6 +667,7 @@
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "www.rust-embedded.com",
"lifecycle_rule.#": "0",
"logging.#": "0",
"region": "us-east-1",
"replication_configuration.#": "0",
Expand Down