You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # 4. The data source in opencomputer-infra/terraform/aws/us-east-2-poc/ami.tf
33
32
# # picks up the new AMI on the next `tofu apply`.
@@ -88,10 +87,30 @@ variable "vector_context" {
88
87
description="Pre-built tarball of deploy/vector/ (config + populator + units). Pre-create with: tar czf /tmp/packer-vector-ctx.tar.gz deploy/vector/"
89
88
}
90
89
91
-
variable"golden_cache_bucket" {
90
+
variable"tigris_endpoint" {
92
91
type=string
93
92
default=""
94
-
description="Optional S3 bucket to upload the bake's golden default.ext4 to (under bases/<golden_version>/). Cell-scoped — e.g. oc-aws-us-east-2-poc-golden-cache. Empty = skip upload."
93
+
description="Optional S3-compatible endpoint for Tigris rootfs/golden cache."
94
+
}
95
+
96
+
variable"tigris_access_key_id" {
97
+
type=string
98
+
default=""
99
+
sensitive=true
100
+
description="Optional Tigris access key for rootfs/golden cache."
101
+
}
102
+
103
+
variable"tigris_secret_access_key" {
104
+
type=string
105
+
default=""
106
+
sensitive=true
107
+
description="Optional Tigris secret key for rootfs/golden cache."
108
+
}
109
+
110
+
variable"tigris_goldens_bucket" {
111
+
type=string
112
+
default=""
113
+
description="Optional Tigris bucket for content-addressed rootfs cache and golden uploads. Empty = skip cache."
"echo \"Uploading default.ext4 → s3://$GOLDEN_CACHE_BUCKET/$S3_KEY (~4GB, will take a moment)\"",
278
-
# Instance profile credentials — the bake runs on an EC2 instance and
279
-
# picks up its role via the metadata service. If the builder role
280
-
# doesn't have s3:PutObject on the cell's bucket, the upload fails
281
-
# gracefully and the AMI still works (just without S3-side hydration).
282
-
"aws s3 cp /opt/opensandbox/images/default.ext4 \"s3://$GOLDEN_CACHE_BUCKET/$S3_KEY\" || echo 'S3 upload failed — continuing (AMI golden is the only copy)'",
335
+
"echo \"Uploading default.ext4 -> s3://$TIGRIS_GOLDENS_BUCKET/$S3_KEY (~4GB, will take a moment)\"",
336
+
"aws s3 cp --endpoint-url \"$TIGRIS_ENDPOINT\" /opt/opensandbox/images/default.ext4 \"s3://$TIGRIS_GOLDENS_BUCKET/$S3_KEY\" || echo 'Tigris upload failed — continuing (AMI golden is the only copy)'",
Copy file name to clipboardExpand all lines: deploy/vector/populate-vector-env.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ aws)
174
174
exit 0
175
175
fi
176
176
if!command -v aws >/dev/null 2>&1;then
177
-
log "aws CLI not installed in AMI — populator can't fetch from Secrets Manager. Bake awscli into the worker image (see deploy/packer/worker-ami-aws.pkr.hcl)."
177
+
log "aws CLI not installed in AMI — populator can't fetch from Secrets Manager. Bake awscli into the worker image (see deploy/packer/worker-ami-aws-burst.pkr.hcl)."
178
178
exit 0
179
179
fi
180
180
# Auto-detect region from IMDSv2 so we don't have to plumb it via env.
0 commit comments