LoginSignup
0
0

More than 3 years have passed since last update.

CloudFormation EFSテンプレートサンプル

Posted at
AWSTemplateFormatVersion: 2010-09-09
Parameters:
  EFSName:
    Type: String
    Default: hoge
  SecurityGroups:
    Type: List<AWS::EC2::SecurityGroup::Id>
  Subnets:
    Type: List<AWS::EC2::Subnet::Id>
Resources:
  FileSystem:
    Type: AWS::EFS::FileSystem
    Properties:
      FileSystemTags:
        - Key: Name
          Value: !Ref EFSName
      Encrypted: true
  MountTarget1:
    Type: AWS::EFS::MountTarget
    Properties:
      FileSystemId: !Ref FileSystem
      SecurityGroups: !Ref SecurityGroups
      SubnetId: !Select
        - '0'
        - !Ref Subnets
  MountTarget2:
    Type: AWS::EFS::MountTarget
    Properties:
      FileSystemId: !Ref FileSystem
      SecurityGroups: !Ref SecurityGroups
      SubnetId: !Select
        - '1'
        - !Ref Subnets
  MountTarget3:
    Type: AWS::EFS::MountTarget
    Properties:
      FileSystemId: !Ref FileSystem
      SecurityGroups: !Ref SecurityGroups
      SubnetId: !Select
        - '2'
        - !Ref Subnets



0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0