我想構建一個帶有兩個塊設備的AMI,它們在調配期間進行了修改。當我使用打包器創建AMI時,似乎沒有對塊設備拍攝新的快照。有沒有辦法強制這個?在打包程序中構建AMI,包含帶打包程序的修改快照
我的模板是 { "builders": [{ "type": "amazon-ebs", "region": "us-east-1", "source_ami": "ami-08842d60", "instance_type": "m4.2xlarge", "security_group_id": "<redacted>", "subnet_id" : "<redacted>", "ssh_username": "ec2-user", "ssh_pty": true, "ami_name": "testing {{timestamp}}", "ami_block_device_mappings": [{ "device_name": "/dev/sdf", "volume_type": "gp2", "volume_size": 100, "delete_on_termination": true, "encrypted": true }, { "device_name": "/dev/sdg", "volume_type": "gp2", "volume_size": 100, "delete_on_termination": true, "encrypted": true }] }] }
如果這個問題不包含任何代碼,那麼對於未來的訪問者來說,答案也是沒有用的。請將相關代碼添加到您的問題中,以避免將其作爲題外話關閉。 – Xufox