Skip to content

Commit 0717ef1

Browse files
committed
add Readmee
1 parent 8392ae3 commit 0717ef1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Readme.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Mount EBS Volume EC2 User Data
2+
3+
This repository provides a Go-based application to automate the process of mounting an EBS volume on an EC2 instance.
4+
5+
## Features
6+
7+
- Waits for the EBS volume to be attached.
8+
- Creates a folder for mounting the EBS volume if it doesn't exist.
9+
- Checks if the volume is already mounted.
10+
- Creates a file system on the EBS volume if necessary.
11+
- Mounts the EBS volume to the specified folder.
12+
13+
## Environment Variables
14+
15+
The application uses the following environment variables:
16+
17+
- `EBS_VOLUME_DEVICE_NAME`: The device name of the EBS volume (e.g., sdh).
18+
- `EBS_FOLDER_PATH`: The folder path where the EBS volume will be mounted.
19+
- `WAIT_EBS_VOLUME_FOLDER_RETRTY_INTERVAL`: Retry interval (in seconds) for checking if the EBS volume is attached.
20+
- `WAIT_EBS_VOLUME_FOLDER_MAX_RETRY`: Maximum number of retries for checking if the EBS volume is attached.
21+

0 commit comments

Comments
 (0)