AWS multiple accounts profiles with cli/terraform

AWS multiple accounts/profiles If you’re working with multiple AWS accounts or environments, using named profiles with the AWS CLI can be very handy. Named profiles are configurations of AWS access keys, secret keys, and default regions. Here’s how you can set up and use multiple profiles: Setting Up Multiple Profiles You can add profiles directly to your AWS configuration file (~/.aws/config) and your credentials file (~/.aws/credentials). Here’s an example for ~/....

Terraform Azure - Login and remote state

CLI Login to azure for Terraform deployments Introduction In this article, we’ll explore the process of logging in to Azure for Terraform deployments and managing remote state. When working with Terraform to provision infrastructure in Azure, it’s crucial to establish a secure and authenticated connection to your Azure account. We’ll start by discussing the steps to log in to Azure using the az login command. This command will prompt you to authenticate with your Azure credentials, allowing you to access and manage your Azure resources within your Terraform configuration....