Closed edzillion closed 5 years ago
Tried deleting the bucket and having terraform recreate. same error
Hmm. removing the Test
phase from the build fixes it.
Ok seems like it was caused by the vpc_config
settings in the Test
phase which I have removed:
vpc_config {
security_group_ids = ["${var.run_task_security_group_ids}"]
subnets = ["${var.run_task_subnet_id}", "${var.db_subnet_id}"]
vpc_id = "${var.vpc_id}"
}
I thought I needed this to get the migrations to run against the live db ... but apparently not :confused: ?
AFAIK this just started occuring, at first it was occasional but now I can't get it to build. The error has always been the same. It fails on the
DOWNLOAD_SOURCE
phase:If I look in S3 that file is present, and I am pretty sure that if it was a permission issue the error would reflect that.
This SO question seems to be a similar problem, as does this
But both of them are issues with the initial phase, downloading from github, which works fine in our case. Unfortunately this seems to negate the explanation that it is because the build instance does not have internet access.
I might just rebuild the terraform stuff from scratch. I would love to move the VPC out of the rocketchat state as described here at the same time but that is gonna take our chat server down for at least part of a day: https://github.com/CirclesUBI/infrastructure-provisioning/issues/25