- 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.
- 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>
- Create a top-level Resources property, which will contain all the resources defined.
- Under the Resources property, add the EFS filesystem resource:
FileSystem: Type: ...