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,460 points
1,366 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,260 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,460 points
2,665 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,460 points
5,829 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,460 points
1,557 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,460 points
1,344 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 17, 2020 in Terraform by akhtar
• 38,260 points
999 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,260 points
1,574 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP