Connect a cloud account
This guide is for the platform engineer who connects an organization's AWS account, Google Cloud (GCP) project or Azure subscription to Multicloud. After the connection, Multicloud starts machines in your cloud account, and your cloud provider bills you directly. You give Multicloud no password and no access key. On AWS, you create one IAM role in your account, and you can delete it at any time. On Google Cloud, you create one new project, and you can delete it at any time. On Azure, you create one managed identity and one role in your subscription, and you can delete them at any time. The AWS stories are Quick connect, 3 and 4. The Google Cloud stories are in Connect a Google Cloud project. The Azure stories are in Connect an Azure subscription.
AWS: start in the Console. Open Organization → Cloud accounts on multicloud.io and click Connect a cloud, then AWS.
For an AWS account that you have, choose Quick connect (recommended): no terminal, see Quick connect (AWS).
For Terraform, the page gives you one file, multicloud.tf, and you run terraform apply.
The page then shows the check and the result.
The steps are in Connect your AWS account.
This guide shows the alternative: the same connection with mctl from a terminal, or through your own AI agent.
The guide covers these stories for each cloud:
- "Connect our account": by hand, or through your own AI agent.
- "Know it is ready": Multicloud checks the connection and tells you "Ready" or what is missing.
Connect your cloud before you create a pool.
Without a connected cloud, a pool create fails with this message: "You have not connected your cloud yet."
The website, mctl extend create and the MCP tool create_extend_pool show the same message.
The message names the commands that connect the cloud (story 3 for AWS, story G1 for Google Cloud).
For AWS, the Connect AWS page in the Console is the first choice (see above).
When your cloud is connected, send an email to support@multicloud.io.
Start here: no install
Connect your AI agent to Multicloud. You install nothing, and you need no API key.
- Claude Code: run
claude mcp add --transport http --scope user --client-id multicloud-mcp-client --callback-port 33418 multicloud https://mcp.multicloud.io/mcp. Then run/mcpand sign in with OAuth. - Claude Desktop or claude.ai: add a custom connector with the URL
https://mcp.multicloud.io/mcp.
Then tell your agent: "Onboard me to Multicloud."
The server gives your agent all Multicloud skills. No restart is needed.
If you have no organization, the agent creates it with create_organization. The agent first asks you to confirm the name. If you use an API key, or the tool fails, create the organization in the Multicloud Console. The agent keeps your onboarding progress on the server.
Creating an organization needs OAuth sign-in with a verified email. Each user can currently create at most 2 organizations per day.
If the agent reports that your email address is not verified, open the verification email from Multicloud, then ask the agent again.
The journey page customer-onboarding-journey.html shows all seven onboarding steps.
Before you start
You need:
- A Multicloud organization, with billing active. Sign up on multicloud.io.
- Your organization ID. This is the short name of your organization (for example
triple-c). On multicloud.io, open Account, then Settings: the row Organization ID shows it, with a copy button. After you sign in (story 2),mctl auth statusalso shows it. With one organization, you do not need it. - A new AWS account made for Multicloud. Multicloud works only inside that account. There are three ways to get one; see A new AWS account for Multicloud. An account that you also use for other work needs the approval of an organization owner.
- The owner role in your organization (the owner can connect cloud accounts).
- An AWS login that can create IAM roles and policies, for example an administrator role through AWS SSO. New to AWS profiles? See Sign in to AWS on your computer.
- OpenTofu or Terraform, version 1.10 or later (the AWS module needs it).
- Python 3.10 or later, with
pipxoruv.
Sign in to AWS on your computer
Terraform uses the AWS sign-in of your terminal. The AWS CLI keeps each sign-in as a named profile in ~/.aws/config.
A profile holds the AWS account, the role, the sign-in method and an optional default region.
You select a profile with export AWS_PROFILE=<name>. If you are not sure, do these checks first.
Install the AWS CLI if aws --version fails: see Install the AWS CLI (on macOS: brew install awscli).
Find your profile. List the profiles, then check which AWS account each one opens:
aws configure list-profiles
aws sts get-caller-identity --profile <name>
The second command prints the 12-digit AWS account ID. Use the profile of the account that you connect.
If it says that the SSO session expired, run aws sso login --profile <name> and try again.
Make a profile if you have none for that account. With AWS IAM Identity Center (single sign-on, recommended):
aws configure sso
The command asks these questions, in this order:
- SSO session name: any name, for example your company name.
- SSO start URL: the "AWS access portal URL", for example
https://my-company.awsapps.com/start. Your AWS administrator has it. It is also in the IAM Identity Center console, under Settings. - SSO region: the region of IAM Identity Center, also on that page.
- Registration scopes: keep the default.
- Your browser opens. Sign in, then select the AWS account and a role that can create IAM roles and policies: for example
AdministratorAccess, or a narrower role from your AWS administrator. - Default client region: the first region that you will give to Multicloud, for example
us-east-1. - Output format: keep the default.
- Profile name: a new name, for example
multicloud. An existing profile with the same name is overwritten.
No single sign-on? With an access key of an IAM user, run aws configure --profile multicloud, and type the key yourself.
The IAM user must be able to create IAM roles. Single sign-on is safer: it gives short sessions, and no key stays on your disk.
Never paste an AWS key into a chat or an AI agent.
Then select the profile and check it:
export AWS_PROFILE=multicloud
aws sts get-caller-identity
A profile with no region makes Terraform stop with Error: invalid AWS Region. Add one with aws configure set region us-east-1 --profile multicloud, or set AWS_REGION (see By hand, step 3).
Story 1: Get an API key (only for CI and scripts)
As the organization owner, I want a key that can connect cloud accounts, so that a script can run the connection without me.
You do not need a key to work in your own terminal: story 2 signs you in with your browser. Skip this story unless a script or CI job must run mctl.
- On multicloud.io, open Account, then API keys.
- Click New key. Type a name, for example
aws-connect. - Select Infrastructure. Click Create.
- Copy the key. The website shows it only once. For an Infrastructure key, the website also shows your organization ID and the sign-in command
mctl auth login --api-key --org <org-id>. The command holds no key:mctlasks you for the key.
If you do not see Infrastructure, contact Multicloud support. Multicloud creates the key for you.
Story 2: Install mctl and sign in
As the platform engineer, I want to sign in with my company account, so that there is no secret to copy and nothing to leak.
Install the CLI:
pipx install multicloud-cli # or: uv tool install multicloud-cli
mctl --version
If your shell does not find mctl, run pipx ensurepath (or uv tool update-shell) and open a new terminal.
To upgrade later, run pipx upgrade multicloud-cli (or uv tool upgrade multicloud-cli).
The AWS stories work with every released version. The Google Cloud stories require mctl 0.4.0 or newer. The approval of a shared project or subscription (mctl cloud-account accept-shared-account) requires 0.4.1 or newer. mctl cloud-account disconnect requires 0.5.2 or newer; its --wait flag, and a destroy that waits for the cleanup, require 0.8.0 or newer. mctl --version shows your version. Older versions cannot connect a Google Cloud project. mctl pool create --cloud-account and mctl extend create --cloud-account (pools on a connected cloud account) require 0.6.0 or newer.
Sign in. mctl opens your browser on auth.multicloud.io. Sign in as you do on multicloud.io:
mctl auth login
mctl prints "Signed in as mctl stores it in ~/.config/multicloud/credentials with access for your user only.
mctl renews the session by itself. After at most 10 hours it asks you to sign in again.
If you belong to more than one organization, add --org <org-id> to the commands, or set MULTICLOUD_ORG.
Do you work over SSH, or in a container with no browser? Run mctl auth login --no-browser. mctl prints a web address and a code. Open the address on any device and enter the code.
Check the result at any time:
mctl auth status
To sign out: mctl auth logout. This also signs you out of auth.multicloud.io in your browser. A stored API key stays on the computer; the command says where it is.
A script or CI job can use an API key (story 1) instead. Set MULTICLOUD_API_KEY: this key wins over a browser sign-in.
You can also store a key with mctl auth login --api-key --org <org-id>. While a browser sign-in exists, mctl uses the sign-in, and the stored key only for the catalog.
To use a stored key for every command on a computer where you are signed in, run mctl auth logout first. This also signs you out in your browser, and the key stays. To delete the stored key, run mctl auth logout --api-key --org <org-id>. A key cannot be shown again, so you then create a new one in the console. mctl auth status shows which one mctl uses.
Quick connect (AWS)
As the organization owner, I want to connect our AWS account from the browser, so that I need no terminal and no tools.
Quick connect creates the IAM role for you with one AWS CloudFormation stack. You click in the Multicloud Console and in the AWS console. You run no command. Quick connect works for AWS only. Azure and Google Cloud use Terraform. Terraform stays available. Use Terraform (Story 3) in these cases:
- You want a new AWS account made through AWS Organizations (see A new AWS account for Multicloud).
- You use customer KMS keys for disks (
ebs_kms_key_arns). - Your company manages cloud access as code.
Who can use it
- You are signed in to the AWS console of the account. You can create IAM roles and CloudFormation stacks.
- You are an organization owner on Multicloud.
Steps
- Open Organization → Cloud accounts. Click Connect a cloud, then AWS.
- Under "Which AWS account does Multicloud use?", choose Use an AWS account I have. The form opens on Create a new AWS account, which uses Terraform, so this choice is required.
- Under "How do you connect it?", choose Quick connect (recommended). It is already selected. The form has no region list: each pool picks its regions later.
- Type the 12-digit number of your AWS account in AWS account ID. Click Continue.
- Click Open AWS to connect. A new browser tab opens the AWS console on "Quick create stack" in US East (N. Virginia). Every value is filled in.
- In AWS, tick the IAM acknowledgement box. Click Create stack.
- Go back to the Multicloud tab and keep it open. It shows "Waiting for the stack in AWS." and updates by itself. At the end it shows "Your AWS account is verified".
Rules for the link:
- The link is valid for 30 minutes and works once. A new click on Open AWS to connect makes a new link. After 30 minutes the page says "This link has expired. Click Open AWS to connect again."
- Do not change the region or the stack name in the AWS console.
- If your browser blocks the new tab, the page says so. Allow pop-ups for the site, then click the button again.
- If the stack does not report within 5 minutes, the page says "The connection did not complete. In the AWS CloudFormation console (N. Virginia), delete the stack
if it exists, then click Open AWS to connect again."
What the stack creates
- One IAM role named
MulticloudProvisioner-<8 hex digits>. It has the same permissions as the Terraform module. - One small "report" resource. It tells Multicloud that the role exists.
- No access key is created or stored.
After the report, Multicloud creates three AWS service-linked roles when the account does not have them yet: EC2 Spot, EC2 Fleet and Service Quotas.
An account that already existed
An AWS account that existed before the connection counts as shared.
The page then asks for one approval by an organization owner.
This is the same approval as on the Terraform path. See the problem rows ACCOUNT_NOT_DEDICATED in Problems.
If it fails
- The stack name is fixed:
multicloud-connect-<cloud account id>. A failed stack keeps its name, inROLLBACK_COMPLETEorROLLBACK_FAILED. AWS then refuses a new stack with "stack already exists". - So first delete the failed stack in the AWS CloudFormation console (N. Virginia, us-east-1). Then click Open AWS to connect again.
- If the page says that a service-linked role could not be created, create it in IAM (Roles → Create role → service-linked). Then verify again.
Disconnect
Disconnect the account on the Cloud accounts page, or with mctl cloud-account as in Disconnect an account.
Then delete the stack multicloud-connect-<cloud account id> in the CloudFormation console (N. Virginia).
The three service-linked roles stay. They belong to your AWS account.
Story 3: Connect our AWS account
As the organization owner, I want to give Multicloud limited access to our AWS account, so that it can run machines there and AWS bills us directly, without me sharing any password or key.
The first choice is the Console: Quick connect (above), or Terraform in Connect your AWS account.
Use the steps below when you work in a terminal, in a script or with your AI agent.
Both ways make the same multicloud.tf and the same role.
What Multicloud creates in your account
| Resource | Purpose |
|---|---|
IAM role MulticloudProvisioner-<suffix> |
Multicloud uses this role for short sessions (1 hour or less). Only the Multicloud broker roles can use it, and only with the external ID of your account. |
| The role policy | A fixed list of EC2 permissions, with no wildcard. A create needs the tag multicloud:managed = true. A change or a delete works only on resources with that tag. |
| The service-linked roles for EC2 Spot, EC2 Fleet and Service Quotas | AWS needs them to start Spot instances and to accept a quota increase request. If they exist already, the module uses them. |
The public module is multicloud/multicloud/aws on the Terraform and OpenTofu registries.
A new AWS account for Multicloud
As the organization owner, I want Multicloud to work in its own AWS account, so that it never touches the rest of our AWS work.
Multicloud works only inside the AWS account that you connect. Use a new account made for Multicloud. Pick the way that fits you.
- Path A (the default): your Terraform makes the account. You need to sign in to your AWS Organizations management account. Run
mctl cloud-account create --cloud AWS --new-account-email you+multicloud@company.com, thenmctl cloud-account apply 7. Your own Terraform makes the account with your own credentials. Multicloud gets no access to the management account. No other AWS account may use the email. A plus-address such asyou+multicloud@company.comusually works. - Path B: your AWS administrator makes the account. In the AWS console, open AWS Organizations, then Add an AWS account, then Create an AWS account. Sign in to the new account. Then follow the steps below.
- Path C: you have no AWS Organizations. Sign up for a new standalone AWS account with an email that no other AWS account uses. Then follow the steps below.
The module README, section "Requirement: a new AWS account for Multicloud", has the details and the permissions that path A needs.
By hand
-
Make a folder for the connection. Keep this folder: it holds the Terraform state of the role. Better: keep the state in a bucket of your organization (
--backend s3in step 2; see Keep the Terraform state).mkdir multicloud-aws && cd multicloud-aws -
Declare the account. Use your 12-digit AWS account ID. By default Multicloud may start machines in every region, and it turns on the opt-in regions of the account. To allow only some regions, add
--regiononce for each region (opt-in regions then turn on only among those). To keep the opt-in regions off, add--no-opt-in-regions:mctl cloud-account create --cloud AWS --account 123456789012MCP:
create_cloud_account(slug=<org-id>, cloud="AWS", expected_native_id="123456789012")mctlprints the number of the cloud account (here7) and writesmulticloud.tfinto the folder.Cloud account 7 created for AWS account 123456789012. Wrote multicloud.tf. Next: mctl cloud-account apply 7 By hand: mctl cloud-account token 7, then tofu apply (or terraform apply). -
Sign in to AWS with your profile (see Sign in to AWS on your computer), for example
export AWS_PROFILE=multicloudandaws sso login. Check that you are in the correct account:aws sts get-caller-identitySet the AWS region for Terraform, in the same shell where you run step 4. Use the first region from step 2 (skip this when your AWS profile already has a region):
export AWS_REGION=us-east-1multicloud.tfhas noprovider "aws"block, so Terraform takes the region fromAWS_REGIONor from your AWS profile. Without a region, the plan stops withError: invalid AWS Region. The role is global in IAM, so this region only tells Terraform where to send its calls. Multicloud still uses only the regions from step 2. -
Apply the module.
mctlrunsinitandplan, shows you the plan, and asks before it changes anything:mctl cloud-account apply 7mctlthen gets a one-time connect code from Multicloud and runs the apply. The module tells Multicloud the name of the new role. Multicloud checks the role at once (see story 4). The one-time code goes only to Terraform.mctlnever shows it or writes it to a file.
If you want to run OpenTofu or Terraform yourself, use this form of step 4:
mctl cloud-account token 7
mctl prints one line that starts with export TF_VAR_multicloud_connect_token=. Run that line in the same shell. Then:
tofu init
tofu apply
mctl cloud-account verify 7 --wait
The connect code is valid for 24 hours, and it works only once. mctl cloud-account token 7 gives you a new code. The old code then stops working.
If you do not use Terraform at all (AWS only), use this form of step 4:
MCP: get_cloud_account_connect_link(slug=<org-id>, cloud_account_id=7, method="quick_connect")
MCP: verify_cloud_account(slug=<org-id>, cloud_account_id=7)
mctl cloud-account quick-connect 7
mctl cloud-account verify 7 --wait
mctl prints an AWS console link. Open it within 30 minutes, sign in to the AWS account, and create the stack. The link carries the connect code: share it with no one else.
With your AI agent
As the platform engineer, I want my AI agent to do the connection, so that I only approve the change.
The Multicloud skill multicloud-connect-aws teaches an agent (for example Claude Code) to run the same mctl steps.
The hosted Multicloud MCP server already serves this skill, so you do not need the next step.
Optional: install the skills locally. Install them from the Multicloud skills repository:
/plugin marketplace add multicloud/skills
/plugin install multicloud-connect-aws@multicloud
Then ask the agent, for example: "Connect our AWS account 123456789012 to Multicloud, region us-east-1."
The agent:
- Checks that
mctl, OpenTofu or Terraform, and your AWS login are ready. It shows you the AWS account of your login. If you have no AWS profile, or do not know which one to use, it shows you how to find or make one. If your AWS profile has no region, it setsAWS_REGIONto the first region you named. - Asks you to run
mctl auth loginin your own terminal. You sign in in your browser. The agent never asks for a key or a password and never sees the session. - Looks for an existing connection of the account, so that it never makes a second one.
- Runs
mctl cloud-account createin a new folder. - Runs
mctl cloud-account apply <n> --plan-only, tells you what the plan creates, and asks you to approve. - After your approval, runs
mctl cloud-account apply <n> --yes, and reports "Ready" or the missing permissions.
The agent never sees the one-time connect code: mctl gives it straight to Terraform.
Story 4: Know it is ready
As the organization owner, I want to know at once if anything is missing, so that I fix it now and not when a build fails.
mctl cloud-account apply waits for the check and prints the result.
You can check again at any time:
MCP: verify_cloud_account(slug=<org-id>, cloud_account_id=7)
mctl cloud-account verify 7 --wait
| Result | Meaning | What to do |
|---|---|---|
Ready: AWS account 123456789012 is connected (policy version 2). |
Multicloud can use the role. | Nothing. Exit code 0. |
Pending: the role is not usable yet (…) |
AWS has not finished the IAM change. This can take up to 15 minutes. | Wait. With --wait, mctl checks again every 30 seconds. Exit code 2 if the wait ends first. |
Verification failed and Missing permissions: with a list, for example ec2:CreateVpc |
The role does not have all permissions. Someone changed the policy, or an SCP (service control policy) blocks an action. | Run mctl cloud-account apply 7 again from the same folder. If an SCP blocks the action, ask your AWS administrator. Exit code 1. |
AWS regions that are turned off
New AWS accounts have some regions turned off, for example af-south-1, ca-west-1 and me-south-1 (AWS calls them opt-in regions).
Multicloud starts machines only in the regions that your account has turned on.
If you allowed a region that is turned off, Multicloud does not use it, and the check still passes.
If every region you allowed is turned off, the check fails with none of the allowed regions is enabled in the AWS account.
With module 1.2.0 (policy version 4), Multicloud turns these regions on for you, unless you said no when you created the cloud account (mctl cloud-account create --no-opt-in-regions, or the checkbox "Turn on all AWS opt-in regions in this account" on the website).
If you set regions, Multicloud turns on only the regions in that list.
The check lists the regions that AWS is turning on (regions ENABLING) and the regions that stay off (regions SKIPPED).
Turning on a region takes minutes to hours.
To change your choice later, run mctl cloud-account verify 7 --opt-in-regions (or --no-opt-in-regions).
An account connected before module 1.2.0 has the choice off: run verify --opt-in-regions once to turn it on.
If an SCP (service control policy) denies account:EnableRegion, the check shows regions WARNING and still passes.
To turn a region on yourself, use the AWS console (Account, AWS Regions).
Multicloud never turns a region off.
When AWS shows the region as enabled, check the account again:
mctl cloud-account verify 7
When you turn a region off, check the account again too, so Multicloud stops using it.
Quota
When the check passes, Multicloud reads your quota for one small node and one GPU node (spot and on-demand), in each region you allowed.
verify requests no quota. It prints a quota LOW line for each quota that is too low.
You ask for more quota through the quota dialogue: your own AI assistant uses the Quota Skill (plugin multicloud-quota) and asks you about your goal first. You can also run the two commands below yourself. Both need the release that adds them; with an older mctl or API, ask AWS yourself in Service Quotas.
The consent applies only to requests that the quota dialogue files. It changes nothing in verify.
The default is no. mctl cloud-account create asks:
Allow Multicloud to request higher quotas in this account later? [y/N]
Answer y, or give --allow-quota-requests. Without a terminal and without the option, the answer is no.
You must sign in as an organization owner (mctl auth login); an API key cannot allow quota requests.
To change the answer later:
mctl cloud-account allow-quota-requests 7
mctl cloud-account revoke-quota-requests 7
A revoke stops new requests. Requests already filed stay open in AWS.
To plan and file quota yourself:
mctl cloud-account quota-plan 7 --region us-east-1 --region eu-west-1
mctl cloud-account quota-request 7 --region us-east-1 --code L-3819A6DF --desired 4
quota-plan only reads: the current limits, the open requests, the refusals of the last 30 days and the request budget for each region.
quota-request files one request. It needs your consent and an API key with the Infrastructure scope.
When AWS refused the same quota in the last 30 days, quota-request files nothing and prints the refusal and a quota NOTE line with its id. To ask again, repeat the command with --confirm-denied <id>.
When you did not allow quota requests, it prints NOTHING FILED and the allow command, and exits with an error.
quota-request files one quota per call. Multicloud also keeps its own request budget: 20 open requests per account, 2 per opt-in region and 1 per quota. A higher AWS limit does not change this budget.
With or without the consent, verify prints a quota LOW line for each quota that is too low and requests nothing.
mctl prints one line per quota. The FILED, OPEN, LATER, NO and WAIT lines come from requests that Multicloud files for you through the quota dialogue (verify files none):
| Line | Meaning |
|---|---|
quota LOW AWS/us-east-1/spot-g: 0 -> 4 (not requested) |
The limit is too low. verify asked AWS for nothing. Plan and file the increase with quota-plan and quota-request, or ask AWS yourself (Service Quotas), then run mctl cloud-account verify <id> again. |
quota FILED AWS/us-east-1/spot-standard -> 160 (request …) |
Multicloud asked AWS for a higher limit. AWS answers in minutes to days. |
quota OPEN … |
A request for this quota is already open. Multicloud waits for it. |
quota OK … |
The limit is already high enough. |
quota LATER …: <reason> |
Multicloud did not ask now. The reason says why. |
quota NO …: <error> |
AWS refused the request. The line shows the AWS error, and the fix when Multicloud knows it. |
quota ? <error> |
Multicloud could not read the quota. The connection is still ready. |
quota WAIT … |
AWS gave an access error that it also gives while an IAM change propagates. Wait a few minutes, then run mctl cloud-account verify <id>. |
checks RUNNING … |
The quota and opt-in region checks run after the verify answer and are not done yet. The lines above are from the last finished check, if any. Run mctl cloud-account verify <id> again in a minute (--wait does this for you). |
You see each request in the AWS console under Service Quotas, Quota request history.
AWS needs some minutes to apply IAM changes.
Right after tofu apply, AWS can deny the quota history read (AccessDeniedException) or the quota request (DependencyAccessDeniedException).
mctl cloud-account apply and mctl cloud-account verify --wait then check again for at most 5 minutes (less when --timeout ends first).
Multicloud never sends the same quota request twice, so a check again is safe.
The account is connected, so mctl exits with code 0 also when quota lines show quota WAIT.
When the errors stay, check the module version.
An older module shows the error with no quota WAIT line, because waiting does not help.
An account connected with module 1.0.1 shows quota LATER with module 1.0.2.
An account connected with module 1.0.2 or older can show quota NO with DependencyAccessDeniedException.
In both cases, change version to 1.1.1 and run mctl cloud-account apply again.
The identity that runs the apply needs iam:UpdateRole on the service-linked roles: the upgrade changes their description.
When several folders use the module in one AWS account, upgrade first the folder that created the service-linked roles.
To see all details of the connection:
MCP: get_cloud_account(slug=<org-id>, cloud_account_id=7)
MCP: list_cloud_accounts(slug=<org-id>)
mctl cloud-account show 7
mctl cloud-account list
mctl cloud-account show 7 also lists the quota requests that AWS refused (quota NO lines), as the last check left them, and the line Quota requests: allowed by … on … or Quota requests: not allowed.
Create a pool on your account
When the account is ready, create a pool that runs on it.
Add cloud_accounts with the id from mctl cloud-account list to the create call:
MCP: create_extend_pool(slug=<org-id>, name="burst", cloud_accounts=[{"id": 7}])
curl -fsS -X POST "$API/api/v1/extend/pools" -H "X-API-Key: $KEY" \
-H "Content-Type: application/json" -d '{"name":"burst","cloud_accounts":[{"id":7}]}'
An API key needs the Infrastructure scope for this call. Add settings.regions to limit the regions.
Spot quota is not filed for these pools in this release. Details: Extend your cluster.
What you see in CloudTrail
Each Multicloud session in your account starts with one AssumeRole event on the role MulticloudProvisioner-<suffix>.
The session name is mc-<id>, where <id> is the cloud account id that mctl cloud-account list shows.
The source identity is scheduler.
A session lasts 1 hour or less. Multicloud starts a new session before the old one ends.
The EC2 events of that session show the same session name.
Later changes
- Repair or upgrade the role. Run
mctl cloud-account apply 7again from the same folder. Multicloud gives a new one-time code for each apply and checks the role again. - Keep the state, preferably in a remote backend. Without the state, a new apply cannot find the role, and AWS refuses a second copy of the service-linked roles ("already exists"). See Keep the Terraform state. A lost state:
mctl cloud-account adopt 7rebuilds it. A second folder for another Multicloud connection in the same account needs no extra setting: the module creates only the service-linked roles that are missing. - Disconnect. See "Disconnect an account" below.
Disconnect an account
An organization owner can disconnect an account. Multicloud then cleans up what it made in the account, and you can connect the same account again later.
- Path A (mctl made the account): run
mctl cloud-account destroy 7. It disconnects the account, waits until the cleanup is done, removes the Multicloud role and closes the account. - Paths B and C: run
mctl cloud-account disconnect 7 --wait. It asks first;--yesskips the question. When it shows Revoked, runtofu destroy(orterraform destroy) in the folder to remove the Multicloud role.
The disconnect needs your sign-in (mctl auth login), not an API key. While it runs, the account shows the status Revoking. Multicloud then:
- Deletes the pools that use the account. Pools of other organizations that you granted the account to are deleted too.
- Waits until their machines are gone.
- Waits until the networks that Multicloud made in the account are deleted.
- Deletes the cache buckets that Multicloud made (
mc-pool-...). - Shows the account as Revoked.
This normally takes some minutes. Run terraform destroy only after the account shows Revoked: without the role, Multicloud cannot delete anything. If you remove the role first, the account shows Revoked after 30 minutes, with a list of what may be left in your account (machines, networks, buckets). Delete those yourself in the AWS console.
Keep the Terraform state
The Terraform state records the role (AWS), the project (Google Cloud) or the identity (Azure) that the module made. mctl cloud-account apply needs it for every later change: more regions (set-regions), a module upgrade, a repair. By default Terraform keeps the state in terraform.tfstate in the folder. When that laptop or folder is lost, the connection still works, but nobody can change it from Terraform. mctl prints a warning on create, apply and set-regions while the state is local.
Recommended: a remote backend in your own cloud. create --backend s3|gcs|azurerm writes backend.tf beside multicloud.tf. Replace its REPLACE-WITH values before the first apply. Turn on versioning in the bucket.
# AWS: S3, with a lock file in the bucket (OpenTofu or Terraform 1.10 and later)
terraform {
backend "s3" {
bucket = "acme-terraform-state"
key = "multicloud/cloud-account-7.tfstate"
region = "us-east-1"
encrypt = true
use_lockfile = true
}
}
# Google Cloud: Cloud Storage (locks by itself)
terraform {
backend "gcs" {
bucket = "acme-terraform-state"
prefix = "multicloud/cloud-account-8"
}
}
# Azure: Storage, signed in with az login (locks with a blob lease)
terraform {
backend "azurerm" {
resource_group_name = "acme-tfstate"
storage_account_name = "acmetfstate"
container_name = "tfstate"
key = "multicloud/cloud-account-9.tfstate"
use_azuread_auth = true
}
}
- If your organization already locks Terraform state with a DynamoDB table,
dynamodb_table = "<table>"still works. Terraform 1.11 deprecates it in favor ofuse_lockfile. - Terraform Cloud or HCP Terraform: a
cloud {}block with a workspace in execution mode "Local" (mctlruns the tool on your computer). - A folder with a local state now: add
backend.tf, then runtofu init -migrate-state(orterraform init -migrate-state).
A lost state (AWS). The role stays in AWS. Do not create the connection again. In an empty folder, rebuild the state:
mctl cloud-account adopt 7 --backend s3
mctl cloud-account apply 7 --plan-only
mctl cloud-account apply 7
adopt writes multicloud.tf and multicloud.imports.tf: import blocks for the role, its policy and the random suffix of the role name. For an account that create --new-account-email made, it also imports the AWS account itself; it reads the account name and email with aws organizations describe-account (management account credentials), or you give --email. The plan must show only imports, one resource to add (the post-back to Multicloud) and nothing to destroy. For an account that create --new-account-email made, --plan-only shows stage 1 only: the import of the AWS account, with nothing to create; the full apply shows the plan of the role after the import and asks again before it applies it. apply refuses a plan that would create or delete an imported resource, so it never makes a second AWS account. The module README, section "Rebuild a lost state", lists the import ids. adopt writes the wanted regions (the regions in force plus the pending ones) into multicloud.tf, so a full apply does not drop a pending region. After the last successful apply (not --plan-only; for an account that create --new-account-email made, not after stage 1), apply deletes multicloud.imports.tf, because the import blocks have done their work and the plan check would block a later intended replace. adopt also issues a new connect token, which replaces the old one; this is harmless.
A lost state (Google Cloud or Azure). adopt supports AWS only for now. Contact Multicloud support (support@multicloud.io) before you apply: a new apply would try to create the project or the identity again.
Problems
| Message | Cause | What to do |
|---|---|---|
No sign-in for <org-id> |
You are not signed in and no key is stored. | Run mctl auth login. |
Your session ended. Run: mctl auth login |
The session is older than 10 hours, or you signed out. | Run mctl auth login. |
You belong to several organizations |
Your sign-in holds more than one organization. | Add --org <org-id>, or set MULTICLOUD_ORG. |
Organization owner role required |
You are a member, not an owner, of the organization. | Ask an organization owner to run the command, or to make you an owner. |
No sign-in within 5 minutes |
The browser sign-in did not finish. | Run mctl auth login again, or mctl auth login --no-browser. |
The API refused the key |
The key is wrong, revoked, or has no Infrastructure access. | Create a new key with Infrastructure (story 1). |
multicloud.tf exists in this directory |
The folder holds a connection already. | Use that connection (mctl cloud-account list), or use a new folder. |
Refusing to apply without confirmation |
mctl cannot ask you (no terminal). |
Review the plan, then run again with --yes. |
ACCOUNT_HELD |
Another Multicloud organization connected this AWS account. | Contact Multicloud support. |
CONNECT_TOKEN_GONE |
The one-time code was used, replaced or is older than 24 hours. | Run mctl cloud-account apply 7 again. It gets a new code. |
ROLE_ARN_MISMATCH |
The role is in another AWS account than the one you declared. | Log in to the correct AWS account and apply again. |
ACCOUNT_NOT_DEDICATED: created before connect |
The AWS account is older than your connection, so you may also use it for other work. Nothing is wrong, and nothing is connected yet: the account waits for an approval. | Best: make a new AWS account for Multicloud (see "A new AWS account for Multicloud"). To connect this account anyway, an organization owner runs mctl cloud-account accept-shared-account 7, reads the warning and types the 12-digit AWS account ID (not the Multicloud cloud account id 7). |
ACCOUNT_NOT_DEDICATED: machines exist |
Virtual machines already run in the AWS account at the first check, so you may also use it for other work. The account waits for an approval. | Best: use a new AWS account. To connect this account with its machines, an organization owner runs mctl cloud-account accept-shared-account 7. Multicloud records who approved and when. |
policy_version>=5 |
The role in your account has an older permission list. Multicloud needs one new read permission (account:GetAccountInformation). |
Change version in multicloud.tf to 2.0.0 and run mctl cloud-account apply 7. Module 2.0.0 needs Terraform or OpenTofu 1.10 or later. |
terraform destroy fails on AWSServiceRoleForEC2Spot with Open or Active spot instance requests found |
Module 1.3.1 and older delete the service-linked roles on destroy, and AWS keeps the last spot request listed for a few minutes after the last spot machine ends. | Wait 5 minutes and run the destroy again. Better: change version to 2.0.0 and apply before the destroy. Module 2.0.0 keeps these roles, so the error does not occur. |
| The account close reports a timeout | AWS needs 10 minutes or more to close the account. Module 1.3.1 and later wait up to 30 minutes; module 1.3.0 waits 10 minutes and can report a timeout in this time. This is expected; nothing is broken. | Wait until the AWS console shows the account as Closed. Then run terraform state rm module.multicloud_account in the folder. |
Connect a Google Cloud project
Stories 1 and 2 (API key, mctl sign-in) are the same for Google Cloud.
You do not need an AWS account for this path.
Before you start (Google Cloud)
You need:
- A Multicloud organization, the owner role, and
mctl0.4.1 or newer, signed in (stories 1 and 2). - A Google Cloud billing account. Google bills the new project to this account.
- A Google Cloud organization or folder where the new project goes. Without one, Google creates the project with no parent. Google allows this only for an account without an organization.
- A Google Cloud login for Terraform. Test it with
gcloud auth application-default login, or use a service account of your own. - These roles for that login:
roles/resourcemanager.projectCreatoron the folder or the organization.roles/billing.useron the billing account.
- OpenTofu or Terraform, version 1.6 or later.
Your Google Cloud administrator may set organization policies. Two of them can block the setup:
iam.workloadIdentityPoolAwsAccountsmust allow the AWS account that Multicloud shows inmulticloud.tfasidentity_account_id.iam.workloadIdentityPoolProvidersmust allow the provider typeaws.
Two more policies limit what Multicloud can create in the project: gcp.resourceLocations and compute.vmExternalIpAccess.
Story G1: Connect our Google Cloud project
As the organization owner, I want to give Multicloud limited access to a Google Cloud project, so that it can run machines there and Google bills us directly, without me sharing any key.
What Multicloud creates in your organization
| Resource | Purpose |
|---|---|
| A new project | Multicloud chooses the project ID (mc- and 10 characters). All Multicloud resources live in this project. Nothing else runs in it. |
A service account mc-provisioner-<suffix> |
Multicloud uses this account for short sessions. It has no key. |
| A workload identity pool and provider | They let only Multicloud sign in as that service account. |
| A custom role and some predefined roles | A fixed list of Compute Engine and network permissions. The service account holds them in the new project only. |
| Six enabled APIs | sts, iamcredentials, compute, iam, cloudresourcemanager and logging. With logging, you can read the Admin Activity audit logs: each change that Multicloud makes in the project. |
The public module is multicloud/multicloud/google, version 1.0.1.
The module creates no service account key and no secret.
The module creates a new project. It does not use an existing project.
By hand
-
Make a folder for the connection. Keep this folder: it holds the Terraform state of the project. Better: keep the state in a bucket of your organization (
--backend gcsin step 2; see Keep the Terraform state).mkdir multicloud-gcp && cd multicloud-gcp -
Declare the project. Do not give a project ID: Multicloud chooses it. The
--regionoption is optional. Use GCP region names, for example--region us-central1:mctl cloud-account create --cloud GCEMCP:
create_cloud_account(slug=<org-id>, cloud="GCE")mctlprints the number of the cloud account (here8) and writesmulticloud.tfinto the folder.Cloud account 8 created for GCP project mc-0123456789. Wrote multicloud.tf.The command refuses
--accountfor Google Cloud. -
Open
multicloud.tf. Replace two placeholder values:billing_account: your billing account ID, for example012345-6789AB-CDEF01.parent:folders/<number>ororganizations/<number>. If your account has no organization, delete theparentline.
multicloud.tfhas noprovider "google"block. Terraform uses your Google Cloud login. -
Sign in to Google Cloud, then apply the module.
mctlrunsinitandplan, shows you the plan, and asks before it changes anything:gcloud auth application-default login mctl cloud-account apply 8mctlthen gets a one-time connect code from Multicloud and runs the apply. The module creates the project and tells Multicloud the name of the new service account. Multicloud checks the project at once (see story G2). The one-time code goes only to Terraform.mctlnever shows it or writes it to a file.
If you want to run OpenTofu or Terraform yourself, run mctl cloud-account token 8, run the export line that it prints, and then:
tofu init
tofu apply
mctl cloud-account verify 8 --wait
The connect code is valid for 24 hours, and it works only once.
The Multicloud skill for AI agents covers AWS only for now. For Google Cloud, use the steps above.
Story G2: Know it is ready
As the organization owner, I want to know at once if anything is missing, so that I fix it now and not when a build fails.
mctl cloud-account apply waits for the check and prints the result. Check again at any time:
MCP: verify_cloud_account(slug=<org-id>, cloud_account_id=8)
mctl cloud-account verify 8 --wait
| Result | Meaning | What to do |
|---|---|---|
Ready: GCP project mc-0123456789 is connected (policy version <n>). |
Multicloud can use the service account in the new project. | Nothing. Exit code 0. |
Pending: ... |
Google has not finished the setup, or the access is not visible yet. | Wait. With --wait, mctl checks again every 30 seconds. Exit code 2 if the wait ends first. |
Verification failed and Missing permissions: with a list |
The service account does not have all permissions. Someone changed the roles, or an organization policy blocks an action. | Run mctl cloud-account apply 8 again from the same folder. |
To see all details, run mctl cloud-account show 8.
MCP: get_cloud_account(slug=<org-id>, cloud_account_id=8)
What you see in Cloud Audit Logs
Each Compute Engine call of Multicloud in your project shows the service account mc-provisioner-<suffix> as the caller.
The field serviceAccountDelegationInfo of each event names the federated principal.
The federated principal ends with the session name mcg- and 32 characters.
A session lasts 1 hour or less. Multicloud starts a new session before the old one ends.
Later changes (Google Cloud)
- Repair or upgrade the access. Run
mctl cloud-account apply 8again from the same folder. Multicloud gives a new one-time code for each apply and checks the project again. - Keep the state, preferably in a remote backend. Without the state, a new apply cannot find the project. See Keep the Terraform state.
- Disconnect. Delete the pools that use the project, then run
mctl cloud-account disconnect 8(organization owners). Multicloud stops using the project at once. Then runtofu destroy(orterraform destroy) in the folder. This deletes the whole project, with everything in it. Google keeps a deleted project recoverable for 30 days.
A project or subscription that is also used for other work
Multicloud works best in a new GCP project or Azure subscription made only for Multicloud. At the first check,
Multicloud looks for signs of other work: a GCP project older than the connection, or virtual machines in it
(PROJECT_NOT_DEDICATED), or virtual machines in an Azure subscription (SUBSCRIPTION_NOT_DEDICATED).
Then the account is not refused. It is not connected either: mctl cloud-account verify prints a warning and
waits for one of two answers.
- Use a new project or subscription instead (recommended). Remove the access with
tofu destroy, then connect a new one withmctl cloud-account create. - Connect anyway (organization owners only). If you connect it anyway: Multicloud changes only the
resources it created; it shares the limits (quotas) and the bill with your other work; to remove
Multicloud later, you delete its resources. Run
mctl cloud-account accept-shared-account 8, read the warning, and type the GCP project ID or the Azure subscription ID (not the Multicloud cloud account id 8).mctlneeds your sign-in (mctl auth login) for this step, not an API key. Multicloud records who approved and when (mctl cloud-account show 8), then checks the account again.
Problems (Google Cloud)
| Message | Cause | What to do |
|---|---|---|
PROJECT_NOT_DEDICATED: created before connect |
The project is older than the connection, so it is also used for other work. The project is not connected yet: it waits for an approval. | Recommended: use the project from multicloud.tf as it is (do not replace project_id), or make a new connection. To connect this project anyway, an organization owner runs mctl cloud-account accept-shared-account 8 (see below). |
PROJECT_NOT_DEDICATED: VMs exist |
Virtual machines run in the project at the first check, so it is also used for other work. The project waits for an approval. | Recommended: delete the machines and do not use the project for other work, then run mctl cloud-account verify 8 --wait. To connect it with the machines, an organization owner runs mctl cloud-account accept-shared-account 8. |
Missing permissions: with names such as compute.instances.create |
A role of the service account is missing. | Run mctl cloud-account apply 8 again. If an organization policy blocks the role, ask your Google Cloud administrator. |
Missing permissions: with api:<service> |
The named API is disabled in the project. | Enable the API, or run mctl cloud-account apply 8 again. The module enables six APIs. |
IDENTITY_MISMATCH |
The service account belongs to another project than the one Multicloud chose. | Do not change project_id. Apply again with the unchanged multicloud.tf. |
CONNECT_BODY_INVALID |
The connect call has the wrong fields for this cloud account. | Use the multicloud.tf that mctl cloud-account create --cloud GCE wrote. |
Federation denied or Pending right after the apply |
Google needs some minutes before the new access works. Multicloud tries again by itself for a short time. | Wait. Run mctl cloud-account verify 8 --wait. |
| The apply fails with a permission error for the project, or for the billing account | Your login lacks roles/resourcemanager.projectCreator or roles/billing.user. |
Ask your Google Cloud administrator for the roles. |
| The apply fails with an organization policy error | The policy iam.workloadIdentityPoolAwsAccounts or iam.workloadIdentityPoolProviders blocks the pool. |
Ask your Google Cloud administrator to allow the AWS account and the provider type aws. |
The AWS problems CONNECT_TOKEN_GONE and the sign-in messages in the table above apply to Google Cloud too.
Connect an Azure subscription
Stories 1 and 2 (API key, mctl sign-in) are the same for Azure.
You do not need an AWS account for this path.
Before you start (Azure)
You need:
- A Multicloud organization, the owner role, and
mctl0.9.0 or newer, signed in (stories 1 and 2). - An Azure subscription for Multicloud. A new subscription made only for Multicloud is strongly recommended.
- The subscription ID, a GUID such as
0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0. - An Azure login that is Owner of the subscription, or holds both User Access Administrator and Contributor. Test it with
az login. - OpenTofu or Terraform, version 1.10 or later, and
curl7.76 or later. On Windows, use WSL.
Story Z1: Connect our Azure subscription
As the organization owner, I want to give Multicloud limited access to an Azure subscription, so that it can run machines there and Microsoft bills us directly, without me sharing any key.
What Multicloud creates in your subscription
| Resource | Purpose |
|---|---|
A resource group mc-identity-<suffix> |
It holds the identity. It is in the location that you choose. |
A managed identity mc-provisioner-<suffix> |
Multicloud signs in as this identity for short sessions. It has no secret and no key. |
| Federated credentials on the identity | They let only Multicloud sign in as the identity, with a sign-in audience made for this connection. |
A custom role MulticloudProvisioner-<suffix> |
A fixed list of compute, network and quota permissions. The identity holds it in this subscription only. It cannot attach an identity to a virtual machine. |
| Four resource provider registrations | Microsoft.Compute, Microsoft.Network, Microsoft.Quota and Microsoft.ManagedIdentity. |
The public module is multicloud/multicloud/azurerm, version 1.0.0.
The module creates no client secret, no certificate and no key.
By hand
-
Make a folder for the connection. Keep this folder: it holds the Terraform state of the identity. Better: keep the state in a storage container of your organization (
--backend azurermin step 2; see Keep the Terraform state).mkdir multicloud-azure && cd multicloud-azure -
Declare the subscription. Give the subscription ID and a location for the identity:
mctl cloud-account create --cloud AZURE --account 0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0 --location swedencentralMCP:
create_cloud_account(slug=<org-id>, cloud="AZURE", expected_native_id="0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0", location="swedencentral")--locationis only where the identity lives. It does not limit where Multicloud runs machines. To limit the locations, add--regiononce for each location, for example--region swedencentral --region germanywestcentral. A new subscription can get no capacity in busy locations. See Problems (Azure).mctlasks if Multicloud may request higher quotas in the subscription (Microsoft.Quota). The default is no.mctlprints the number of the cloud account (here9) and writesmulticloud.tfinto the folder.Cloud account 9 created for Azure subscription 0f1e2d3c-4b5a-6978-8796-a5b4c3d2e1f0. Wrote multicloud.tf.multicloud.tfstarts with aprovider "azurerm"block for your subscription. You do not need to change the file. -
Sign in to Azure, then apply the module.
mctlrunsinitandplan, shows you the plan, and asks before it changes anything:az login mctl cloud-account apply 9mctlthen gets a one-time connect code from Multicloud and runs the apply. The module creates the identity and tells Multicloud its tenant, client ID and resource ID. Multicloud checks the subscription at once (see story Z2). The one-time code goes only to Terraform.mctlnever shows it or writes it to a file.
If you want to run OpenTofu or Terraform yourself, run mctl cloud-account token 9, run the export line that it prints, and then:
tofu init
tofu apply
mctl cloud-account verify 9 --wait
If the apply worked but the module could not reach Multicloud, report the identity from the same folder:
mctl cloud-account connect 9 --from-terraform-output
The connect code is valid for 24 hours, and it works only once.
Story Z2: Know it is ready
mctl cloud-account apply waits for the check and prints the result. Check again at any time:
MCP: verify_cloud_account(slug=<org-id>, cloud_account_id=9)
mctl cloud-account verify 9 --wait
| Result | Meaning | What to do |
|---|---|---|
Ready: Azure subscription <id> is connected (policy version <n>). |
Multicloud can use the identity in your subscription. | Nothing. Exit code 0. |
Pending: ... |
Azure has not finished the setup, or the new access is not visible yet. | Wait. With --wait, mctl checks again every 30 seconds. |
Verification failed and Missing permissions: with a list |
The role does not have all permissions. Someone changed the role, or a policy blocks an action. | Run mctl cloud-account apply 9 again from the same folder. |
SUBSCRIPTION_NOT_DEDICATED |
Virtual machines run in the subscription, so it is also used for other work. | See A project or subscription that is also used for other work. |
To see all details, including the tenant and the identity, run mctl cloud-account show 9.
MCP: get_cloud_account(slug=<org-id>, cloud_account_id=9)
Later changes (Azure)
- Repair or upgrade the access. Run
mctl cloud-account apply 9again from the same folder. - Keep the state, preferably in a remote backend. Without the state, a new apply cannot find the identity. See Keep the Terraform state.
- Quota requests. An organization owner runs
mctl cloud-account allow-quota-requests 9orrevoke-quota-requests 9. - Disconnect. Delete the pools that use the subscription, then run
mctl cloud-account disconnect 9(organization owners). Multicloud stops using the subscription at once and deletes the networks that it made there. Wait untilmctl cloud-account show 9showsStatus: revoked. Then runtofu destroy(orterraform destroy) in the folder. This deletes the identity, the role and its resource group. The subscription stays.
Problems (Azure)
| Message | Meaning | What to do |
|---|---|---|
Error: a resource with the ID "/subscriptions/<id>/providers/Microsoft.Compute" already exists - to be managed via Terraform this resource needs to be imported |
Module 1.0.0 manages the resource provider registrations and cannot adopt one that is already registered. | Upgrade to module 1.0.1 (see below), then run mctl cloud-account apply 9 again. |
RequestDisallowedByAzure "not accepting new customers" |
Azure does not accept new subscriptions in this location. | Use another --location, for example swedencentral. |
Pool stays without machines; the pool events show SkuNotAvailable |
Azure has no capacity for the machine sizes in this location. This is not an access problem. | Add other locations with --region on a new connection. |
tofu destroy waits a long time on Microsoft.Compute "Unregistering" |
Module 1.0.0 unregisters the resource providers on destroy. Azure waits until no resource of the provider remains. | Upgrade to module 1.0.1 (see below), run apply, then destroy. The providers stay registered in the subscription. |
Connect check reports provider:Microsoft.Compute (or Network, Quota) |
The resource provider is not registered in the subscription. | Add the resource_providers_to_register line of the snippet to your provider "azurerm" block, or run az provider register --namespace <namespace>. |
Capacity differs for each subscription and changes over time. Check your locations before mctl cloud-account create, because you cannot change the locations of a connection later. A new subscription often has 3 spot vCPUs per location:
az vm list-usage --location <location> --query "[?name.value=='lowPriorityCores']"
Upgrade a connection folder from module 1.0.0 to 1.0.1 in two applies. Do not do both steps in one apply.
-
In
multicloud.tf, change the moduleversionto"1.0.1"andrequired_versionto">= 1.10.0". Do not change theprovider "azurerm"block yet. Runmctl cloud-account apply 9. The plan shows the four registrations as "forget" (OpenTofu) or "no longer managed" (Terraform), never as destroy. They stay registered in the subscription. -
Add this line to the
provider "azurerm"block, belowresource_provider_registrations = "none"(add that line too if it is missing), then runmctl cloud-account apply 9again. The plan shows no changes to the module resources.resource_providers_to_register = ["Microsoft.Compute", "Microsoft.ManagedIdentity", "Microsoft.Network", "Microsoft.Quota"]
If you add the line in step 1, the plan stops with The Resource Provider "Microsoft.Compute" is automatically registered by Terraform. The 1.0.0 registrations are still in the state at that point. Remove the line, then start again at step 1.