How to create an EFS in AWS from Terraform Code

0 votes
Hi Guys,

I want to create an EFS in AWS from my Terraform code. But I am not able to find any resources. Can anyone help me?
Sep 9, 2020 in Terraform by MD
• 95,040 points
191 views

1 answer to this question.

0 votes

Hi@MD,

You can use aws_efs_file_system resource in Terraform. This resource is used to create an EFS in AWS. You can see the below example.

resource "aws_efs_file_system" "myefsvol" {
  creation_token = var.my_efs_token
  encrypted = var.my_efs_encryption
  tags = {
    Name = "MY_EFS"
  }
}
answered Sep 9, 2020 by akhtar
• 38,170 points

Related Questions In Terraform

0 votes
1 answer

How to create a rds snapshot from running rds instance in AWS using terraform?

Hi, I think you can use aws_db_instance resource to ...READ MORE

answered Jul 20, 2020 in Terraform by MD
• 95,040 points
808 views
0 votes
1 answer

How to create a route table in AWS using Terraform code?

Hi@akhtar, You can use aws_route_table resources in your ...READ MORE

answered Jul 21, 2020 in Terraform by MD
• 95,040 points
760 views
0 votes
1 answer

How to create one key in AWS using terraform?

Hi@akhtar, You can use aws_key_pair resource n terraform. ...READ MORE

answered Jun 11, 2020 in Terraform by MD
• 95,040 points
571 views
0 votes
1 answer

How to create a VPC in AWS using Terraform?

Hi@akhtar, You can find the script in the ...READ MORE

answered Jul 21, 2020 in Terraform by MD
• 95,040 points
268 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer

How to create a workspace in terraform?

Hi@MD, Terraform has a command named terraform workspace. ...READ MORE

answered Aug 16, 2020 in Terraform by akhtar
• 38,170 points
160 views
0 votes
1 answer

How to set an IAM policy for a project in GCP using Terraform?

Hi@akhtar, You can create a policy and give ...READ MORE

answered Sep 13, 2020 in Terraform by akhtar
• 38,170 points
164 views