bootstrap-vz/bootstrapvz/providers/ec2/manifest-schema-s3.json
Anders Ingemann 056f1968c1 Fixes #14 and #78
S3 images can now be bootstrapped outside EC2.
However, this fix adds the requirement of a "region" setting.
At some point we could make "region" optional and fail when bootstrap-vz
is run outside EC2 and no "region" is set.
2014-05-03 16:12:34 +02:00

54 lines
1,022 B
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "EC2 manifest for instance store AMIs",
"type": "object",
"properties": {
"credentials": {
"type": "object",
"properties": {
"certificate": {
"type": "string"
},
"private-key": {
"type": "string"
},
"user-id": {
"type": "string"
}
}
},
"image": {
"type": "object",
"properties": {
"bucket": {
"type": "string"
},
"region": {
"$ref": "#/definitions/aws-region"
}
},
"required": ["bucket", "region"]
},
"volume": {
"type": "object",
"properties": {
"partitions": {
"type": "object",
"properties": {
"type": { "enum": ["none"] }
}
}
}
}
},
"required": ["image"],
"definitions": {
"aws-region": {
"enum": ["ap-northeast-1", "ap-southeast-1",
"ap-southeast-2", "eu-west-1",
"sa-east-1", "us-east-1",
"us-gov-west-1", "us-west-1",
"us-west-2", "cn-north-1"]
}
}
}