CirclesUBI / infrastructure-provisioning

Infrastructure and Services for Circles
GNU Affero General Public License v3.0
5 stars 2 forks source link

Need to change instances to Linux2 AMI from CoreOS. #9

Open edzillion opened 6 years ago

edzillion commented 6 years ago

I was looking into a problem with scheduling for ubibot and I realised that the time is set completely wrong on the instance. I presume this is because it is an AMI from a different region.

I tried to add a filter to the AMI lookup:

data "aws_ami" "stable_coreos" {
  most_recent = true

  filter {
    name   = "description"
    values = ["CoreOS Container Linux stable *"]
  }
...

  filter {
    name   = "region"
    values = ["eu-central-1"]
  }

  owners = ["595879546273"] # CoreOS
}

which didn't work but then I realised that perhaps CoreOS doesn't have region specific images (which appears to be the case but I can't tell definitively)

All this brings me back to wanting to change the images on these instances to Amazon Linux 2. I tried before and made a mess of it, and had to roll back my changes.

This time I have a new branch: https://github.com/CirclesUBI/infrastructure-provisioning/tree/amzn-linux-2

evanstucker-hates-2fa commented 5 years ago

Why is ubibot running on an AMI instead of in a container?