File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments