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: Management-Utilities/ec2-user-data-iscsi-create-and-mount/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ These sample scripts provide a way to launch an AWS EC2 instance with `user data
5
5
volume and LUN, mount it to the instance, while installing all the needed libraries and resources.
6
6
7
7
## Notes
8
-
- LUN size will be set to 90% of the volume size, the remain space is needed for the the LUN managment operation.
9
-
This means that usuable volume size is 90% of the requestd size.
10
-
- The process might take several minutes to be compleetd.
8
+
- LUN size will be set to 90% of the volume size, the remaining space is needed for the LUN management operation.
9
+
This means that usable volume size is 90% of the requested size.
10
+
- The process might take several minutes to be complete.
11
11
12
-
## Perperation
12
+
## Preperation
13
13
14
-
1. Create an AWS SecretsManager secret to hold the password of the account you plan to use to authenicate to the FSxN file system with.
14
+
1. Create an AWS SecretsManager secret to hold the password of the account you plan to use to authenticate to the FSxN file system with.
15
15
The secret should be of type `other` with value set to `Plain Text` that holds just the password.
16
16
2. Create an AWS IAM role that has EC2 as the trusted entity and has permissions to read the secret value. Here is an example policy that will do that:
17
17
```json
@@ -34,7 +34,7 @@ The secret should be of type `other` with value set to `Plain Text` that holds j
34
34
## Deployment Options
35
35
36
36
There are two ways to deploy an EC2 instance with the needed user data script:
37
-
1. Copy the CloudFormation template found in the repo [EC2-cloud_formation.yaml](EC2-cloud_formation.yaml) to you local machine and deploy a CLoudFormation stack using it. CloudFormation will prmopt you for all the required parameters.
37
+
1. Copy the CloudFormation template found in the repo [EC2-cloud_formation.yaml](EC2-cloud_formation.yaml) to you local machine and deploy a CloudFormation stack using it. CloudFormation will prompt you for all the required parameters.
38
38
2. Follow the instruction below to deploy an EC2 instance from the AWS console.
39
39
40
40
## AWS console deployment
@@ -45,8 +45,8 @@ with `Amazon Linux 2023`, `Ubuntu 24.04`, `Red Hat Enterprise Linux 10` and `Deb
45
45
while the Windows script is designed for `Windows Server 2025 Base`.
46
46
47
47
Note that since AWS has a 16KB limit for the user data the linux_userData.sh script is made up of the variable
48
-
assignment noted below, and a compressed, based64 encoded version of the `linux_userData_real.sh` script. When the
49
-
`linux_userData.sh` script is run, it will decode and uncompress effecitively the `linux_userData_real.sh` script
48
+
assignment noted below, and a compressed, base64 encoded version of the `linux_userData_real.sh` script. When the
49
+
`linux_userData.sh` script is run, it will decode and uncompress what was the `linux_userData_real.sh` script
50
50
and run it.
51
51
52
52
Once you have downloaded the script, open it in a text editor and set the required values as noted below.
@@ -75,11 +75,11 @@ while the Windows script is designed for `Windows Server 2025 Base`.
75
75
<li>Launch new instance
76
76
<ol>
77
77
<li>Fill in the server name.</li>
78
-
<li>Under the Quick Start tab select the Linux distribution of your choice. The supported disibutions are: `Amazon Linux 2023`, `Ubuntu 24.04`, `Red Hat Enterprise Linux 10` and `Debian 13`</li>
78
+
<li>Under the Quick Start tab select the Linux distribution of your choice. The supported distributions are: `Amazon Linux 2023`, `Ubuntu 24.04`, `Red Hat Enterprise Linux 10` and `Debian 13`</li>
79
79
<li>Fill in the other settings based on your networking and business needs.</li>
80
80
<li>Under 'Advanced details':
81
81
<ol>
82
-
<li>Set the 'IAM instance profile' to the policy you created in the perperation step above.</li>
82
+
<li>Set the 'IAM instance profile' to the policy you created in the preperation step above.</li>
83
83
<li>At the bottom, under the 'User data' section, press 'choose file' and select the script saved above.</li>
0 commit comments