Docs for bitbucket + aws seem to not be correct any more. Is it possible that cml for this combo is broken/ currently unsupported?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, terraform
- Domain
- ci-cd, cloud, documentation
Research direction
Compare the Bitbucket getting-started page, the cml.dev marketing snippet, the self-hosted runners page, and the example_model_export_cml pipeline with the current cml runner launch behavior. Reproduce the AWS command and inspect the Terraform error, including the documented and tried --cloud-image values. Done means the Bitbucket/AWS support status, required credentials, image options, and any necessary documentation changes are clearly established.
Written by the indexing model from the issue text.
Description
So I've followed the docs on getting started with Bitbucket which was pretty smooth: https://cml.dev/doc/start/bitbucket
I've then tried to extend this with the 'marketing' code snippet on https://cml.dev/, which is also the 'documented' Bitbucket solution
cml runner launch \
--cloud=aws \
--cloud-region=us-west \
--cloud-type=m5.2xlarge \
--cloud-spot \
--labels=cml.runner
I've also combined this with the Blog by Rob here: https://dvc.org/blog/bitbucket-cml-runners which outlines extending the REPO_TOKEN with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. I'm pretty certain the REPO_TOKEN is correct as the 'comment' step from the other example is working. I'm also pretty certain the secret keys are working as well from the AWS IAM 'last used' values ticking over each time.
The error is being raised internally in the cml runner call from terraform.
{"level":"info","message":"Preparing workdir /home/runner..."}
{"level":"info","message":"Deploying cloud runner plan..."}
{"level":"info","message":"Terraform apply..."}
{"level":"info","message":"Terraform 1.9.8"}
{"level":"info","message":"iterative_cml_runner.runner: Plan to create"}
{"level":"info","message":"Plan: 1 to add, 0 to change, 0 to destroy."}
{"level":"info","message":"iterative_cml_runner.runner: Creating..."}
{"level":"info","message":"iterative_cml_runner.runner: Creation errored after 2s"}
{"level":"error","message":"terraform error: Error: Failed creating the machine: Nor iterative-cml nor Ubuntu Server 18.04 are available in your region"}
A number of --cloud-image values were tried, including variations described in https://github.com/iterative/cml/issues/1494 and a number of strings representing generic amazon ami images. The error stayed the same, except replacing iterative-cml with the value supplied in --cloud-image
I'm spiking this for use in a work project, and I'm a little concerned about adopting this for a few reasons:
- This example project of using AWS + BitBucket + CML was last proven to 'work' 3 years ago: https://bitbucket.org/iterative-ai/example_model_export_cml/pipelines
- This example project as written currently won't work without at least a minor edit, as
cml runneris nowcml runner launch, missing thelaunchwill give (an informative) error cml runner launchseems to have an undocumented--cloud-imageargument, which does seem to have an impact in the error message in this case directly, but it seems entirely undocumented. I discovered it from here: https://github.com/iterative/cml/issues/1494 and it seems it's lack of documentation was discussed here in 2023: https://github.com/iterative/cml/pull/1302- The currently 'recommended' practice of creating a
REPO_TOKENfrom username and password hashed works for now, but is depreciated from last month and will be disabled on June 9, 2026 according to a message on Bitbucket in User > Access Management > App passwords.
What is the state of the project right now? Is it still suitable for adoption, or is it being quietly depreciated, migrated or replaced?
I hope this doesn't sound judgy or angry. I'm not emotionally invested in this at all, just trying to make a good choice for the company. We've had great success in adopting the core dvc project for managing ml experiments and hopefully will continue in the years to come 🤞🏻
- Dominant language
- JavaScript
- Stars
- 4.2k
- Forks
- 345
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from iterative/cml
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
frontend level2 nsoc26
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Riya-Kharade/PetSathi#401 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
keyxmakerx/Chronicle#3048 ·
Maintainers usually reply within 1 day
-
blast/small refactor risk/medium spend-dem
Difficulty 1/5 Under an hour Newbie friendliness 85/100
chriskelly/MusicWall#85 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day