Ensure you are logged into both AWS & Azure systems from your CLI before executing below terraform commands.
aws sts get-caller-identity
az account show
Connect to AWS systems from Azure Cloud. In this example, we will use Azure VM to connect with AWS resources.
terraform init
terraform plan
terraform apply
Post terraform apply
, copy the ssh command from the output and login to the Azure VM.
- Some pre-requisities will be installed
- Connectivity to the AWS systems will be established
- Test it by running,
aws sts get-caller-identity
AmazonS3ReadOnlyAccess
is provided in the configuration.- Run
aws s3 ls
- Must work - Run
aws ec2 describe-instances --region us-east-1
- Must throw permission error
- Run
terraform destroy