Skip to content

Commit 4b39285

Browse files
authored
Update README.md
1 parent 45f4a67 commit 4b39285

File tree

1 file changed

+18
-21
lines changed
  • Management-Utilities/ec2-user-data-iscsi-create-and-mount

1 file changed

+18
-21
lines changed
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EC2 User data scripts
22

33
## Introduction
4-
Those samples provides a way to launch AWS EC2 instances with user data scripts that will create FSXn volume mount it to the instance,
4+
Those samples provides a way to launch AWS EC2 instances with user data scripts that will create FSxN volume and LUN, mount it to the instance,
55
while installing all the needed libraries and resources
66

77
## Set Up
@@ -11,26 +11,26 @@ Set the following permissions:
1111

1212
Example AWS Policy
1313
{
14-
"Version": "2012-10-17",
15-
"Statement": [
16-
{
17-
"Sid": "VisualEditor0",
18-
"Effect": "Allow",
19-
"Action": [
20-
"secretsmanager:GetSecretValue"
21-
],
22-
"Resource": "arn:aws:secretsmanager:us-west-2:847548833:secret:test/posh-75WJ57"
23-
}
24-
]
14+
"Version": "2012-10-17",
15+
"Statement": [
16+
{
17+
"Sid": "VisualEditor0",
18+
"Effect": "Allow",
19+
"Action": [
20+
"secretsmanager:GetSecretValue"
21+
],
22+
"Resource": "arn:aws:secretsmanager:us-west-2:847548833:secret:test/posh-75WJ57"
23+
}
24+
]
2525
}
2626

2727
1. AWS Amazon Linux
2828
First, get the needed script according to the instance type you want to run.
2929
Set the following values in the script:
3030
- SECRET_NAME - Secret name has it been saved in AWS secret manager
3131
- AWS_REGION - AWS secret manager region
32-
- FSXN_ADMIN_IP - FSXn administrator IP
33-
- VOLUME_NAME - The name of the volume you want to create in your FSXn.
32+
- FSXN_ADMIN_IP - FSxN administrator IP
33+
- VOLUME_NAME - The name of the volume you want to create in your FSxN.
3434
- VOLUME_SIZE - The size of the volume you want to create in GB e.g [100g]
3535
- SVM_NAME - The SVM name, if you have another SVM which is not the default 'fsx'.
3636

@@ -45,15 +45,15 @@ If an error occurs while the installation is running, the process will be termin
4545
2. AWS Microsoft Windows Server 2025
4646
Set the following values in the script:
4747
- $secretId - secret ARN from yours AWS secret manager
48-
- $ip - FSXn administrator IP
49-
- $password - FSXn administrator password
50-
- $volName - The name of the volume you want to create in your FSXn.
48+
- $ip - FSxN administrator IP
49+
- $password - FSxN administrator password
50+
- $volName - The name of the volume you want to create in your FSxN.
5151
- $volSize - The size of the volume you want to create in GB e.g [100]
5252
- $drive_letter - The drive letter to assign to the volume.
5353

5454
Save the script file.
5555

56-
In AWS console EC2 -
56+
## In AWS console EC2 -
5757

5858
For Linux installation:
5959
- Launch new instance fill in the server name and select 'Amazon Linux' then select under Amazon Machine Image select 'Amazon Linux 2023 AMI' fill in any other required data,
@@ -67,6 +67,3 @@ For Windows installation:
6767
go to Advanced details and scroll down to User data, press 'choose file', and select the script file you have saved.
6868
Launch the instance.
6969
The installation log file can be found at: C:\Users\Administrator\install.log
70-
71-
72-

0 commit comments

Comments
 (0)