Skip to content

Instantly share code, notes, and snippets.

@wesmaldonado
Created November 22, 2016 18:27
Show Gist options
  • Save wesmaldonado/7203cce5e333cc12969dd57f7be1e90c to your computer and use it in GitHub Desktop.
Save wesmaldonado/7203cce5e333cc12969dd57f7be1e90c to your computer and use it in GitHub Desktop.
* Customer (id, email address, display name)
* ShoppingCart (contain Products, discounts)
SpotBidMarketItem Products (has price)
SpotBidProfile (AWS::SpotFleetConfig)
- user_id
- display_name
- instance_type (c4.large)
- instance_count_min
- instance_count_max
- ami_id
- subnet (default)
- region (us-west-2)
- vpc (default)
# active? - iff SpotBidRequests.any?{ active? running? }
- Instances.active { id : 1 }
- SpotBidRequest ( once started )
-- aws_instances (max active in this collection is instance_count)
[ AwsInstance(aws_instance_id) ]
[ AwsInstance(aws_instance_id).appendState(Monitored(date, status) ]
[ AwsInstance(aws_instance_id) ]
[ AwsInstance(aws_instance_id,created_at).appendState(ReplacementFor(aws_id)) ]
-- Instances
SpotBidRequestStatus
ShippingLabel (ShippingAddress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment