awscc_efs_access_point (Resource)

The AWS::EFS::AccessPoint resource creates an EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point. The operating system user and group override any identity information provided by the NFS client. The file system path is exposed as the access point's root directory. Applications using the access point can only access data in its own directory and below. To learn more, see Mounting a file system using EFS access points. This operation requires permissions for the elasticfilesystem:CreateAccessPoint action.

Example Usage

EFS Access Point

To use awscc_efs_access_point with awscc_efs_file_system:

resource "awscc_efs_access_point" "this" {
  file_system_id = awscc_efs_file_system.this.id

  access_point_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

resource "awscc_efs_file_system" "this" {

  file_system_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

To create a awscc_efs_access_point with posix_user

resource "awscc_efs_access_point" "this" {
  file_system_id = awscc_efs_file_system.this.id
  posix_user = {
    gid = 1001
    uid = 1001
  }

  access_point_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

resource "awscc_efs_file_system" "this" {

  file_system_tags = [
    {
      key   = "Name"
      value = "this"
    },
    {
      key   = "Modified By"
      value = "AWSCC"
    }
  ]
}

Schema

Required

Optional

Read-Only

Nested Schema for access_point_tags

Optional:

Nested Schema for posix_user

Required:

Optional:

Nested Schema for root_directory

Optional:

Nested Schema for root_directory.creation_info

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_efs_access_point.example <resource ID>