You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/aws/services/efs.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
---
2
2
title: "Elastic File System (EFS)"
3
-
linkTitle: "Elastic File System (EFS)"
4
3
description: Get started with Elastic File System (EFS) on LocalStack
5
4
tags: ["Ultimate"]
6
5
---
@@ -12,7 +11,7 @@ EFS offers scalable and shared file storage that can be accessed by multiple EC2
12
11
EFS utilizes the Network File System protocol to allow it to be used as a data source for various applications and workloads.
13
12
14
13
LocalStack allows you to use the EFS APIs in your local environment to create local file systems, lifecycle configurations, and file system policies.
15
-
The supported APIs are available on our [API coverage page]({{< ref "coverage_efs" >}}), which provides information on the extent of EFS's integration with LocalStack.
14
+
The supported APIs are available on our [API coverage page](), which provides information on the extent of EFS's integration with LocalStack.
16
15
17
16
## Getting started
18
17
@@ -26,13 +25,13 @@ We will demonstrate how to create a file system, apply an IAM resource-based pol
26
25
To create a new, empty file system you can use the [`CreateFileSystem`](https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateFileSystem) API.
27
26
Run the following command to create a new file system:
28
27
29
-
{{< command >}}
30
-
$ awslocal efs create-file-system \
28
+
```bash
29
+
awslocal efs create-file-system \
31
30
--performance-mode generalPurpose \
32
31
--throughput-mode bursting \
33
32
--encrypted \
34
33
--tags Key=Name,Value=my-file-system
35
-
{{< /command >}}
34
+
```
36
35
37
36
The following output would be retrieved:
38
37
@@ -58,9 +57,9 @@ The following output would be retrieved:
58
57
You can also describe the locally available file systems using the [`DescribeFileSystems`](https://docs.aws.amazon.com/efs/latest/ug/API_DescribeFileSystems.html) API.
59
58
Run the following command to describe the local file systems available:
60
59
61
-
{{< command >}}
62
-
$ awslocal efs describe-file-systems
63
-
{{< /command >}}
60
+
```bash
61
+
awslocal efs describe-file-systems
62
+
```
64
63
65
64
You can alternatively pass the `--file-system-id` parameter to the `describe-file-system` command to retrieve information about a specific file system in AWS CLI.
66
65
@@ -69,19 +68,19 @@ You can alternatively pass the `--file-system-id` parameter to the `describe-fil
69
68
You can apply an EFS `FileSystemPolicy` to an EFS file system using the [`PutFileSystemPolicy`](https://docs.aws.amazon.com/efs/latest/ug/API_PutFileSystemPolicy.html) API.
70
69
Run the following command to apply a policy to the file system created in the previous step:
You can list the file system policies using the [`DescribeFileSystemPolicy`](https://docs.aws.amazon.com/efs/latest/ug/API_DescribeFileSystemPolicy.html) API.
79
78
Run the following command to list the file system policies:
80
79
81
-
{{< command >}}
82
-
$ awslocal efs describe-file-system-policy \
80
+
```bash
81
+
awslocal efs describe-file-system-policy \
83
82
--file-system-id <FILE_SYSTEM_ID>
84
-
{{< /command >}}
83
+
```
85
84
86
85
Replace `<FILE_SYSTEM_ID>` with the ID of the file system you want to list the policies for.
87
86
The output will return the `FileSystemPolicy` for the specified EFS file system.
@@ -91,11 +90,11 @@ The output will return the `FileSystemPolicy` for the specified EFS file system.
91
90
You can create a lifecycle configuration for an EFS file system using the [`PutLifecycleConfiguration`](https://docs.aws.amazon.com/efs/latest/ug/API_PutLifecycleConfiguration.html) API.
92
91
Run the following command to create a lifecycle configuration for the file system created in the previous step:
0 commit comments