bootstrap-vz/bootstrapvz/providers/ec2/manifest-schema.json
Anders Ingemann a3b84737f1 HVM AMIs only work when EBS backed right now.
S3 backed AMIs only work when they are unpartitioned.
Remove json schema restriction and add some nicer messages in the validation function
2014-05-04 13:46:40 +02:00

50 lines
884 B
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "EC2 manifest",
"type": "object",
"properties": {
"virtualization": { "enum": ["pvm", "hvm"] },
"image": {
"type": "object",
"properties": {
"description": {
"type": "string"
}
}
},
"credentials": {
"type": "object",
"properties": {
"access-key": {
"type": "string"
},
"secret-key": {
"type": "string"
}
}
},
"system": {
"type": "object",
"properties": {
"bootloader": {
"type": "string",
"enum": ["pvgrub", "extlinux"]
}
}
},
"volume": {
"type": "object",
"properties": {
"backing": { "enum": ["ebs", "s3"] },
"partitions": {
"type": "object",
"properties": {
"type": { "enum": ["none", "msdos", "gpt"] }
}
}
},
"required": ["backing"]
}
},
"required": ["image"]
}