In this story, we will learn how to create (and remove) a snapshot of a VMware vSphere Virtual Machine (VM) using PowerShell and PowerCLI.
This script is useful to create a snapshot before we are going to make a change in a VM and remove it after we complete the change.
This first step is to install all requirements:
# Install VMware Components
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Install-PackageProvider -Name NuGet -MinimumVersion 184.108.40.206 -Force
Install-Module VMware.PowerCLI -Repository PSGallery -Force
Import-Module VMware.VimAutomation.Core -Force
The second step is to authenticate to the VMware vSphere using PowerCLI:
$vcserver = "vcenter.kopicloud.local"
$vcusername = "email@example.com"
In this story, we going to learn, step by step, two ways to migrate an RDS Database to the Same AWS Region and AWS Account, using AWS Console and the new KopiCloud Move RDS tool, without downtime (*).
Note: For this example, we will SQL Server as RDS engine, however this process is applicable to other RDS databases engines, but not for clusters.
When we need to move an existing RDS SQL Server database (or other RDS engine) the process is pretty complex, in particular when you need to move to another AWS Account.
There are 4 different scenarios, when we will look to copy/move/migrate an RDS…
We introduced support for AWS Session Tokens on our new KopiCloud AWS Automation Tools recently, and in this story, we will learn how to use them to authenticate to our tools or any tool that support AWS Session Tokens.
So, what are AWS Session Tokens? They are a set of temporary credentials for an AWS account or IAM user. The credentials consist of an Access Key ID, a Secret Access Key, and a Security Token.
The first step is downloading and installing the AWS CLI from https://aws.amazon.com/cli
Then, we will set up the credentials using the aws configure command:
AWS Access Key ID [None]: xxxxxxxxxxxxxxxxxx
AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Default region name [None]: eu-west-1
Default output format…