Terraform provider for Interweb Mozambique: manage VPS servers, domains and DNS records as code https://docs.interweb.co.mz
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 09:43:26 +02:00
.github Add CI workflow and Dependabot 2026-11-28 09:16:23 +02:00
docs Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
examples Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
internal Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
.gitignore Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
.goreleaser.yml Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
CHANGELOG.md Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
go.mod Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
go.sum Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
LICENSE Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
main.go Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
README.md Add badges and improve description 2026-11-28 09:43:26 +02:00
README.pt.md Add badges and improve description 2026-11-28 09:43:26 +02:00
repo.json Add badges and improve description 2026-11-28 09:43:26 +02:00
terraform-registry-manifest.json Initial release (1.0.0) 2026-11-27 22:29:25 +02:00

Terraform Provider for Interweb Mozambique

CI Release License: MIT

Manage your Interweb Mozambique VPS servers, domains and DNS records with Terraform. The provider uses only the public Interweb Mozambique API: https://docs.interweb.co.mz.

What it does

Type Name What for
Resource interwebmz_vps Buy a VPS with credit, or manage one you have: power state, time zone, reverse DNS
Resource interwebmz_domain Register a domain, or manage one you have: nameservers, transfer lock, renewal
Resource interwebmz_dns_record Records of the DNS zone: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA
Data source interwebmz_catalog_products Products for sale and their prices
Data source interwebmz_catalog_product One product with its options (system, data center...)
Data source interwebmz_catalog_tlds Domain extensions and prices
Data source interwebmz_domain_availability Whether a domain can be registered
Data source interwebmz_servers Your servers

Quick start

terraform {
  required_providers {
    interwebmz = {
      source  = "interweb-mz/interwebmz"
      version = "~> 1.0"
    }
  }
}

provider "interwebmz" {}

resource "interwebmz_dns_record" "www" {
  domain = "example.co.mz"
  name   = "www"
  type   = "A"
  value  = "203.0.113.10"
  ttl    = 3600
}
export INTERWEB_API_KEY="sandbox_..."   # create the key in Meu Interweb
terraform init
terraform apply

Start with a sandbox_ key: it reads your real data, but every write is simulated and nothing is charged. More examples in examples/ and the full reference in docs/.

Good to know

  • Purchases (a VPS, a domain registration) are paid with the account credit, within the spending limit of the key. Each one goes with its own Idempotency-Key, so a retry never charges twice.
  • The API cannot cancel services or delete domains: terraform destroy only removes them from the state. Cancel in Meu Interweb (https://www.meu.interweb.co.mz).
  • The purchase settings of a VPS cannot change after the purchase. The provider stops the plan instead of buying a second server.
  • 429 and 5xx answers are retried; errors show the API code and the correlation_id for support.

Build from source

Needs Go 1.22 or later.

go mod tidy
go build -o terraform-provider-interwebmz
go test ./...

To try a local build, point Terraform to it in ~/.terraformrc:

provider_installation {
  dev_overrides {
    "interweb-mz/interwebmz" = "/path/to/the/folder/with/the/binary"
  }
  direct {}
}

Domain extensions (500)

From Mozambique: .co.mz, .net.mz, .org.mz, .ac.mz, .adv.mz, .edu.mz, .gov.mz, .mil.mz

Most popular: .com, .net, .org, .info, .biz, .co, .io, .ai, .me, .tv, .app, .dev, .online, .store, .site, .shop, .tech, .xyz, .cloud, .pro

All others: .abogado, .ac, .academy, .accountant, .accountants, .actor, .ad, .adult, .africa.com, .agency, .airforce, .ao, .apartments, .archi, .army, .art, .asia, .associates, .attorney, .auction, .audio, .auto, .autos, .baby, .band, .bar, .barcelona, .bargains, .beauty, .beer, .berlin, .best, .bet, .bike, .bingo, .bio, .black, .blackfriday, .blog, .blue, .boats, .bond, .boo, .boston, .bot, .boutique, .broker, .build, .builders, .business, .buzz, .ca, .cab, .cafe, .cam, .camera, .camp, .capetown, .capital, .car, .cards, .care, .career, .careers, .cars, .casa, .cash, .casino, .cat, .catering, .cc, .center, .ceo, .cfd, .channel, .charity, .chat, .cheap, .christmas, .church, .city, .claims, .cleaning, .click, .clinic, .clothing, .club, .co.ao, .co.uk, .co.za, .coach, .codes, .coffee, .college, .community, .company, .compare, .computer, .condos, .construction, .consulting, .contact, .contractors, .cooking, .cool, .country, .coupons, .courses, .credit, .creditcard, .cricket, .cruises, .cv, .cymru, .cyou, .dad, .dance, .date, .dating, .day, .de, .deal, .dealer, .deals, .degree, .delivery, .democrat, .dental, .dentist, .design, .diamonds, .diet, .digital, .direct, .directory, .discount, .diy, .doctor, .dog, .domains, .download, .durban, .eat, .eco, .edu.ao, .education, .email, .energy, .engineer, .engineering, .enterprises, .equipment, .es, .esq, .estate, .eu, .events, .exchange, .expert, .exposed, .express, .fail, .faith, .family, .fan, .fans, .farm, .fashion, .fast, .feedback, .finance, .financial, .fish, .fishing, .fit, .fitness, .flights, .florist, .flowers, .fly, .fm, .foo, .food, .football, .forex, .forsale, .forum, .foundation, .free, .fun, .fund, .furniture, .futbol, .fyi, .gallery, .game, .games, .garden, .gay, .gg, .gifts, .gives, .giving, .glass, .global, .gmbh, .gold, .golf, .graphics, .gratis, .green, .gripe, .group, .guide, .guitars, .guru, .hair, .haus, .health, .healthcare, .help, .here, .hiphop, .hiv, .hockey, .holdings, .holiday, .homes, .horse, .hospital, .host, .hosting, .hot, .house, .how, .icu, .id, .im, .immo, .immobilien, .in, .inc, .industries, .ing, .ink, .institute, .insure, .international, .investments, .irish, .it.ao, .je, .jetzt, .jewelry, .kaufen, .kids, .kim, .kitchen, .land, .lat, .latino, .law, .lawyer, .lease, .legal, .lgbt, .life, .lifestyle, .lighting, .limited, .limo, .link, .live, .living, .llc, .loan, .loans, .locker, .lol, .london, .lotto, .love, .ltd, .luxe, .luxury, .maison, .makeup, .management, .market, .marketing, .markets, .mba, .media, .meme, .memorial, .men, .miami, .mobi, .mobile, .moda, .mom, .money, .monster, .mortgage, .motorcycles, .mov, .movie, .music, .my, .navy, .network, .new, .news, .nexus, .ninja, .now, .nyc, .observer, .one, .ong, .org.ao, .page, .partners, .parts, .party, .pet, .phd, .photo, .photography, .photos, .pics, .pictures, .pink, .pizza, .place, .plumbing, .plus, .poker, .porn, .press, .productions, .prof, .promo, .properties, .property, .protection, .pub, .pw, .quest, .racing, .realty, .recipes, .red, .rehab, .reise, .reisen, .rent, .rentals, .repair, .report, .republican, .rest, .restaurant, .review, .reviews, .rip, .rocks, .rodeo, .rsvp, .run, .sale, .salon, .sarl, .sbs, .school, .schule, .science, .security, .select, .services, .sex, .sexy, .sh, .shiksha, .shoes, .shopping, .show, .si, .singles, .ski, .skin, .soccer, .social, .software, .solar, .solutions, .soy, .space, .spot, .storage, .stream, .studio, .study, .style, .supplies, .supply, .support, .surf, .surgery, .systems, .talk, .tattoo, .tax, .taxi, .team, .technology, .tel, .tennis, .theater, .theatre, .tickets, .tienda, .tips, .tires, .to, .today, .tools, .top, .tours, .town, .toys, .trade, .trading, .training, .tube, .uk, .university, .uno, .us, .vacations, .vana, .ventures, .vet, .viajes, .video, .villas, .vin, .vip, .vision, .vodka, .vote, .voto, .voyage, .wales, .watch, .webcam, .website, .wedding, .wiki, .win, .wine, .work, .works, .world, .wtf, .xxx, .yachts, .yoga, .you, .za.com, .zip, .zone

License

MIT. See LICENSE.


Create your API key in the API Center of Meu Interweb. Documentation: https://docs.interweb.co.mz

Maintained by RLX Holdings.