Introduction
In this article, we will use the Connection Setup Wizard to quickly deploy the cross-account IAM role and IAM permission policies used to connect the CloudSaver Platform to your AWS environment.
Before we get started, there are a few things you will need to complete the Connection Setup.
You will need:
- Your AWS Management Account ID. If you have only one AWS account, that is your management account.
- Credentials for your AWS account to log in through CLI or the management console of your choice.
- Permission to create AWS IAM roles and policies.
- If you choose CLI, you will need to have AWS CLI downloaded and installed on your computer. For more information, please refer to the AWS documentation HERE .
For more information on using your AWS Management Account, CLI or IAM Permissions, see the links below:
- AWS Management Account
- CLI
- IAM Permissions
Get Started
After you have logged in to the CloudSaver Platform for the first time you will follow the following steps to get connected.
- Log in to the app.
- In the bottom left of the screen, click Settings.
- You will see Connect to CloudSaver at the top of the window.
- Click Get Started.
This is the Let’s Get Connected window. If you do not have any of the listed information, you can invite a team member who has the necessary permissions to complete the setup.
- Once you have all the information required, click Next.
You will have three options: CLI, CloudFormation, and Terraform. We will walk through the CLI process first as it is different than the other two. CloudFormation and Terraform use the same process at the beginning.
CLI
- Click Select CLI.
- Select the CLI script based on your operating system.
- This will include a token to authorize access, and in the upper right corner of the script window there is a “Copy” icon. Click Copy.
- Paste the script on your terminal.
- Press Enter.
- The script will run and after the accounts are connected, you will see a green checkmark next to Connect Successful.
- At the bottom, click on View Connection and on the very next page you will see all added connections.
CloudFormation / Terraform
For both CloudFormation and Terraform, the CloudSaver connection templates are downloaded in nearly the same way.
To follow the more detailed process for Terraform, click HERE .
With regards to AWS CloudFormation deployments, CloudFormation StackSets offers a quick way to provision the connection IAM cross-account role & permission policies; you can read more about deploying StackSet for CloudSaver connection at Connecting Accounts with AWS CloudFormation .
- Click Select CloudFormation or Select Terraform.
- Enter your 12-digit Management Account ID. This will be used to find and connect to your AWS Management Account.
- Once the accounts are connected, you will see a green checkmark and ‘Valid Account ID‘ next to the ID field.
- The CloudSaver app will prepare a YAML file if you use CloudFormation or a .tf file for Terraform.
- For CloudFormation, click the CloudFormation button to download the YAML file.
- For Terraform, click the Terraform button to download the .tf file.
- Upload the file to your AWS Management Account.
- CloudSaver will check for connectivity to the Management Account. You will be able to click View Connections at the bottom to view what has been successfully connected.
In this article