Answers: <p>The is certainly achievable and here are some ways to get this accomplished:</p>
  <ul>
  <li><p>Have a Spacelift Cloud Integration associated with an IAM role in the
  shared services account that has <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html" rel="nofollow noreferrer">cross-account permissions to assume
  local IAM roles in the target AWS
  accounts</a>
  (“Account A” and “Account B”).</p>
  <p><a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume_role-configuration-block" rel="nofollow noreferrer">Have the AWS Terraform provider assume the local AM
  roles</a>
  (“acct-a” and “acct-b”) via the credentials for the “acct-ss” role.</p>
  </li>
  </ul>
  
Answers: CC BY-SA 4.0
Answers: 2024-01-28T20:37:50.950Z
Answers: 2024-01-28T20:37:50.950Z
Answers: Spacelift
Body: <p>How can I connect my Spacelift stack to deploy resources into my multiple AWS accounts?</p>
  <p>I have a current integration set up, and this works perfectly to deploy resources to my account but how can I attach multiple AWS accounts?</p>
  
Tags: <amazon-web-services><terraform><spacelift>
Title: How can I attach multiple AWS accounts to my Spacelift stack?
UserDisplayName: Danielle Murphy
ThreadText: # How can I attach multiple AWS accounts to my Spacelift stack?
  
  (Asked by: username_0 on 2024-01-28)
  
  How can I connect my username_1 stack to deploy resources into my multiple AWS accounts?
  
  I have a current integration set up, and this works perfectly to deploy resources to my account but how can I attach multiple AWS accounts?
  
  **Tags:** amazon-web-services, terraform, spacelift
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-28. Score: 1 | Accepted answer
  
  The is certainly achievable and here are some ways to get this accomplished:
  
  * Have a username_1 Cloud Integration associated with an IAM role in the
    shared services account that has [cross-account permissions to assume
    local IAM roles in the target AWS
    accounts](https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html)
    (“Account A” and “Account B”).
  
    [Have the AWS Terraform provider assume the local AM
    roles](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume_role-configuration-block)
    (“acct-a” and “acct-b”) via the credentials for the “acct-ss” role.
  
  
  ---
  
  