Skip to content

Commit

Permalink
Merge pull request #1304 from nanovms/aws-delete-on-terminate
Browse files Browse the repository at this point in the history
AWS: Set DeleteOnTermination for boot disk when creating AMI
  • Loading branch information
sanderssj authored Mar 24, 2022
2 parents e02b84e + b534f1f commit 9cb3334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/aws_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (p *AWS) CreateImage(ctx *lepton.Context, imagePath string) error {
{
DeviceName: aws.String("/dev/sda1"),
Ebs: &ec2.EbsBlockDevice{
DeleteOnTermination: aws.Bool(false),
DeleteOnTermination: aws.Bool(true),
SnapshotId: aws.String(snapshotID),
VolumeType: aws.String("gp2"),
},
Expand Down

0 comments on commit 9cb3334

Please sign in to comment.