The current documentation (https://help.mikrotik.com/docs/display/ ... HR+7.6+AMI) assumes you know how to create trust policies and roles on AWS. I think that can be quite intimidating for some users.
Below is a step by step including the JSON files required to spin up a CHR with a custom AMI that does not suffer from the current issues on T3 instances.
-------
Download the json files attached to this post (awsFiles.zip).
Create a new S3 bucket. The one i used is called "chr-tester", given that bucket name is now taken replace "chr-tester" with your bucket name, e.g. "my-chr-bucket-55" in these 2 file (from the zip archive attached to the post):
Code: Select all
mikrotik-routeros-chr-7142-raw-containers.json
role-policy.json
Code: Select all
https://cdn.mikrotik.com/routeros/7.14.2/chr-7.14.2.img.zip
Code: Select all
chr-7.14.2.img
Then upload the 4 files from the zip archive by clicking "Actions-> Upload File" in the cloudshell window. Dont change the file, e.g. version is not your version but an amazon thing, just upload:
Code: Select all
mikrotik-routeros-chr-7142-raw-containers.json
aws-import-snapshot-mikrotik-chr-7142.sh
trust-policy.json
role-policy.json
Code: Select all
aws iam create-role --role-name vmimport --assume-role-policy-document file:///home/cloudshell-user/trust-policy.json
Code: Select all
aws iam put-role-policy --role-name vmimport --policy-name vmimport --policy-document file:///home/cloudshell-user/role-policy.json
Code: Select all
bash /home/cloudshell-user/aws-import-snapshot-mikrotik-chr-7142.sh import-snapshot
Code: Select all
"ImportTaskId": "import-snap-65467756756765"
Code: Select all
bash /home/cloudshell-user/aws-import-snapshot-mikrotik-chr-7142.sh monitor-import import-snap-65467756756765
Code: Select all
"StatusMessage": "snapshot completed"
Grab the line with "SnapshotId: from the monitor job, e.g:
Code: Select all
"SnapshotId": "snap-54654756878568"
Code: Select all
bash /home/cloudshell-user/aws-import-snapshot-mikrotik-chr-7142.sh register-image snap-54654756878568
Code: Select all
"ImageId": "ami-36547567578657"
Find your image and launch, then configure as normal and voila, you have a CHR instance that can be upgraded / downgraded without bricking.