ucberkeley / bce

Berkeley Common Environment provides a common Linux computational environment for classwork and research.
Apache License 2.0
13 stars 6 forks source link

Build AMI from US-west-2 rather than 1, to save 13% #53

Closed ck37 closed 9 years ago

ck37 commented 9 years ago

m3.medium is $0.077/hr in Northern California and $0.067/hr in Oregon, with similar pricing advantages for other instance types. (http://aws.amazon.com/ec2/pricing/)

Could also be cool to eventually use the spot pricing option for packer (just do spot_price="auto"): https://www.packer.io/docs/builders/amazon-ebs.html#spot_price

ck37 commented 9 years ago

Oops, I need to update the image to use ami-ffce8bcf for Oregon, and also copy the AMI to us-west-1.

paciorek commented 9 years ago

I think previously I was building primarily for us-west-2.

On Thu, Jul 16, 2015 at 12:43 PM, Chris Kennedy notifications@github.com wrote:

Closed #53 https://github.com/ucberkeley/bce/pull/53.

— Reply to this email directly or view it on GitHub https://github.com/ucberkeley/bce/pull/53#event-357881367.

paciorek commented 9 years ago

Never mind, I see that I was using us-west-1 for building. What I was thinking of was that I was putting the AMI in both us-west-{1,2}.

On Thu, Jul 16, 2015 at 12:48 PM, Chris Paciorek <paciorek@stat.berkeley.edu

wrote:

I think previously I was building primarily for us-west-2.

On Thu, Jul 16, 2015 at 12:43 PM, Chris Kennedy notifications@github.com wrote:

Closed #53 https://github.com/ucberkeley/bce/pull/53.

— Reply to this email directly or view it on GitHub https://github.com/ucberkeley/bce/pull/53#event-357881367.

paciorek commented 9 years ago

Chris, if you do this change to the EC2 json file, you should change ami-regions to be us-west-1 so that the AMI gets created for both us-west-{1,2} in case users do want to use it in us-west-1.

On Thu, Jul 16, 2015 at 1:46 PM, Chris Paciorek paciorek@stat.berkeley.edu wrote:

Never mind, I see that I was using us-west-1 for building. What I was thinking of was that I was putting the AMI in both us-west-{1,2}.

On Thu, Jul 16, 2015 at 12:48 PM, Chris Paciorek < paciorek@stat.berkeley.edu> wrote:

I think previously I was building primarily for us-west-2.

On Thu, Jul 16, 2015 at 12:43 PM, Chris Kennedy <notifications@github.com

wrote:

Closed #53 https://github.com/ucberkeley/bce/pull/53.

— Reply to this email directly or view it on GitHub https://github.com/ucberkeley/bce/pull/53#event-357881367.