AMI
FreeBSD 13.2-RELEASE amd64 is also available on these cloud hosting platforms:
FreeBSD/amd64 Amazon® EC2™:
FreeBSD/amd64 EC2 AMIs are available in the following regions:ap-northeast-1 region: ami-0280a5d56ef027090
/etc/sysctl.conf net.inet6.ip6.dad_count=0
EBSボリュームを追加、既存インスタンスにアタッチ
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/volume_attachment
Amazon EC2上にFreeBSD13を立てAmazon EBSをマウントする - Qiita 2021
resource "aws_volume_attachment" “some-attachment” { device_name = "/dev/sdf" volume_id = "${aws_ebs_volume.some-ebs.id}" instance_id = "${aws_instance.some-instance.id}" } resource "aws_ebs_volume" “some-ebs" { availability_zone = "ap-northeast-1a" size = 100 tags { Name = “some-ebs" } }
device_name( /dev/sdf )はFreeBSDだと活用されないので適当なデバイス名を入れておく
Linux 用の推奨デバイス名: ルートボリュームの場合は /dev/sda1。データボリュームの場合は /dev/sd[f-p]。
# gpart create -s GPT nda1 # gpart add -t freebsd-ufsnda1 # newfs -U /dev/nda1p1 # mount /dev/nda1p1 /mnt
参考
[Red Hat Enterprise Linux] EBSボリュームのデバイス名とOSが認識しているブロックデバイス名をマッピングさせてマウントしてみた | DevelopersIO 2023