Help requested booting AArch64 AWS EC2 NixOS instance

I am trying to boot an aarch64 instance in AWS, but I am failing. I’ve tried both aarch64 AMIs for 20.03 and 20.09.

When I do this, SSH is never reachable via the public ip that is allocated.

This is the script: https://gist.github.com/colemickens/3a3fda5ef739d27112b20ede76126a98

Does the same script wok with a non-NixOS AMI?

No. I was missing several pieces of what it takes to manually boot an ec2 vm. I’ve now corrected those mistakes. this is my latest iteration: https://gist.github.com/colemickens/755df2bc4a61c9c657794eef4adce261

And the NixOS AMI works… this topic can be ignored now.