github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/compilers/osv/osv_aws.go (about) 1 package osv 2 3 import ( 4 "github.com/solo-io/unik/pkg/types" 5 ) 6 7 const OSV_AWS_MEMORY = 1024 8 9 type AwsImageFinisher struct {} 10 11 func (b *AwsImageFinisher) FinishImage(params FinishParams) (*types.RawImage, error) { 12 return &types.RawImage{ 13 LocalImagePath: params.CapstanImagePath, 14 StageSpec: types.StageSpec{ 15 ImageFormat: types.ImageFormat_QCOW2, 16 XenVirtualizationType: types.XenVirtualizationType_HVM, 17 }, 18 RunSpec: types.RunSpec{ 19 DeviceMappings: []types.DeviceMapping{ 20 {MountPoint: "/", DeviceName: "/dev/sda1"}, 21 }, 22 DefaultInstanceMemory: OSV_AWS_MEMORY, 23 }, 24 }, nil 25 } 26 27 func (b *AwsImageFinisher) UseEc2() bool { 28 return true 29 }