How to do it...

  1. Open your favorite text editor, and start a new CloudFormation template by defining the AWSTemplateFormatVersion and Description:
        AWSTemplateFormatVersion: "2010-09-09"         Description: Create an EFS file system and endpoints.
  1. Create a top-level Parameters section, and define the required parameters, VpcId and SubnetIds, inside it:
        VpcId:           Description: VPC ID that contains the subnets that will             access the file system           Type: AWS::EC2::VPC::Id         SubnetIds:           Description: Subnet IDs allowed to access the EFS file system           Type: List<AWS::EC2::Subnet::Id>
  1. Create a top-level Resources property, which will contain all the resources defined.
  1. Under the Resources property, add the EFS filesystem resource:
        FileSystem:  Type: ...

Get AWS Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.