workshops/eda-workshop-soca/templates/nfs_server_ebs_zfs_soca.yaml [323:369]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: String
  ZfsMountPoint:
    Default: zfs1
    Description: ZFS mount point, absolute path will be /pool_name/mount_point (e.g.
      /v01/zfs1)
    Type: String
  ZfsOrMdadm:
    AllowedValues:
      - ZFS
    ConstraintDescription: Must be ZFS
    Default: ZFS
    Description: 'ZFS or mdadm auto-selected by template, using: ZFS'
    Type: String
  ZfsPool:
    Default: v01
    Description: ZFS pool name
    Type: String

Resources:
  BucketPolicy:
    Condition: Has_Bucket
    Properties:
      PolicyDocument:
        Statement:
          - Action:
              - s3:GetObject
            Effect: Allow
            Resource: !Sub 'arn:aws:s3:::${S3BucketName}/*'
          - Action:
              - s3:ListBucket
            Effect: Allow
            Resource: !Sub 'arn:aws:s3:::${S3BucketName}'
        Version: '2012-10-17'
      PolicyName: BucketPolicy
      Roles:
        - !Ref 'RootRole'
    Type: AWS::IAM::Policy
  EIPAddress:
    Condition: create_elastic_ip
    Properties:
      Domain: vpc
      InstanceId: !Ref 'NFSInstance'
    Type: AWS::EC2::EIP
  NFSInstance:
    Type: AWS::EC2::Instance
    Properties:
      DisableApiTermination: false
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



workshops/eda-workshop-soca/templates/nfs_server_instanceStore_zfs_soca.yaml [276:322]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: String
  ZfsMountPoint:
    Default: zfs1
    Description: ZFS mount point, absolute path will be /pool_name/mount_point (e.g.
      /v01/zfs1)
    Type: String
  ZfsOrMdadm:
    AllowedValues:
      - ZFS
    ConstraintDescription: Must be ZFS
    Default: ZFS
    Description: 'ZFS or mdadm auto-selected by template, using: ZFS'
    Type: String
  ZfsPool:
    Default: v01
    Description: ZFS pool name
    Type: String

Resources:
  BucketPolicy:
    Condition: Has_Bucket
    Properties:
      PolicyDocument:
        Statement:
          - Action:
              - s3:GetObject
            Effect: Allow
            Resource: !Sub 'arn:aws:s3:::${S3BucketName}/*'
          - Action:
              - s3:ListBucket
            Effect: Allow
            Resource: !Sub 'arn:aws:s3:::${S3BucketName}'
        Version: '2012-10-17'
      PolicyName: BucketPolicy
      Roles:
        - !Ref 'RootRole'
    Type: AWS::IAM::Policy
  EIPAddress:
    Condition: create_elastic_ip
    Properties:
      Domain: vpc
      InstanceId: !Ref 'NFSInstance'
    Type: AWS::EC2::EIP
  NFSInstance:
    Type: AWS::EC2::Instance
    Properties:
      DisableApiTermination: false
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



