This is a terraform provider for managing resources on your RouterOS device. To see what resources and data sources are supported, please see the documentation on the terraform registry.
You can discuss any issues you have or feature requests in Discord.
- RouterOS. See which versions are supported by what is tested in CI
- Terraform 0.12+
The provider is tested with Terraform's acceptance testing framework. As long as you have a RouterOS device you should be able to run them. Please be aware it will create resources on your device! Code that is accepted by the project will not be destructive for anything existing on your router but be careful when changing test code!
In order to run the tests you will need to set the following environment variables:
export MIKROTIK_HOST=router-hostname:8728
export MIKROTIK_USER=username
# Please be aware this will put your password in your bash history and is not safe
export MIKROTIK_PASSWORD=passwordAfter those environment variables are set you can run the tests with the following command:
make testaccmd5 null sha1 sha256 sha512
3des aes-128-cbc aes-128-ctr aes-128-gcm aes-192-cbc aes-192-ctr aes-192-gcm aes-256-cbc
aes-256-ctr aes-256-gcm blowfish camellia-128 camellia-192 camellia-256 des null twofish
ec2n155 ec2n185 ecp256 ecp384 ecp521 modp768 modp1024
modp1536 modp2048 modp3072 modp4096 modp6144 modp8192 none
digital-signature eap eap-radius pre-shared-key pre-shared-key-xauth rsa-key rsa-signature-hybrid
eap-mschapv2 eap-peap eap-tls eap-ttls
no port-override port-strict
certificate remote-id
all egp ggp icmp igmp ipsec-ah ipv6-frag ipv6-route ospf rdp sctp udp vrrp
dccp encap gre icmpv6 ipencap ipsec-esp ipv6-nonxt iso-tp4 pim rspf st udp-lite xns-idp
ddp etherip hmp idpr-cmtp ipip ipv6-encap ipv6-opts l2tp pup rsvp tcp vmtp xtp
discard encrypt none
require unique use
ah esp