86869/how-to-configure-aws-mfa-for-terraform
Hi Guys,
I am using Terraform to manage AWS infrastructure. I want to use Terraform in a mode that uses multi-factor authentication. How can I do that?
Hi@akhtar,
You can specify assume_role in your AWS provider. You can see the below code for better understanding.
provider "aws" { profile = "default" assume_role { role_arn = "arn:aws:iam::[ACCOUNT_ID]:role/terraform-test-role" } }
Hi@akhtar, You can use aws_key_pair resource n terraform. ...READ MORE
Hi, I think you can use aws_db_instance resource to ...READ MORE
Hi, When you run your Terraform code it ...READ MORE
Hi@akhtar, You can find the script in the ...READ MORE
Hi@akhtar, You have to set an environment variable ...READ MORE
Hi@akhtar, A module is a container for multiple resources that ...READ MORE
Hi@akhtar, Terraform is agnostic to the underlying cloud ...READ MORE
Hi@akhtar, You can use the file function in Terraform. This file function ...READ MORE
Hi@akhtar, Terraform has one keyword named route. It allows ...READ MORE
Hi@akhtar, You can find one resource in Terraform ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.