Skip to content

Commit 4a55805

Browse files
committed
Solana release
1 parent d69c595 commit 4a55805

File tree

2 files changed

+32
-33
lines changed

2 files changed

+32
-33
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sync-node-deploy*.json
3030
instance-image*.json
3131
rpc-node-deploy*.json
3232
single-node-deploy*.json
33-
hs-node-deploy*.json
33+
ha-nodes-deploy*.json
3434

3535
*.OLD
3636
.env

docs/setup-cloud9.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AWS Cloud9 Setup
22

3-
Most steps in this repository will need to be performed from a Linux command prompt. An especially convenient way of doing this is to use AWS Cloud9, a cloud-based Integrated Development Environment (IDE). Cloud9 allows you to edit source files and execute commands from an easy-to-use web interface. It comes preconfigured with many of the tools needed for software development, and because it runs in the AWS Cloud, it can be an especially easy way to access other cloud services. One other handy feature is that your Cloud9 instances automatically stop running after a configurable period of inactivity, which helps reduce costs.
3+
Most steps in this repository will need to be performed from a Linux command prompt. An especially convenient way of doing this is to use AWS Cloud9, a cloud-based Integrated Development Environment (IDE). Cloud9 allows you to edit source files and execute commands from an easy-to-use web interface. It comes pre-configured with many of the tools needed for software development, and because it runs in the AWS Cloud, it can be an especially easy way to access other cloud services. One other handy feature is that your Cloud9 instances automatically stop running after a configurable period of inactivity, which helps reduce costs.
44

55
## Create a Cloud9 environment
66

@@ -14,10 +14,10 @@ Create an instance profile called **Cloud9-Developer-Access**
1414

1515
1. Create role policy definition file
1616

17-
```bash
18-
cat <<EOF > ec2-trust-policy.json
17+
```bash
18+
cat > ec2-trust-policy.json <<EOF
1919
{
20-
"Version": "2012-10-17",
20+
"Version": "2012-10-17",
2121
"Statement": [
2222
{
2323
"Effect": "Allow",
@@ -28,38 +28,38 @@ Create an instance profile called **Cloud9-Developer-Access**
2828
}
2929
]
3030
}
31-
EOF
32-
```
31+
EOF
32+
```
3333

3434
2. Create new IAM role called "Cloud9-Developer-Access" and assign the new role policy
3535

36-
```bash
37-
aws iam create-role \
38-
--role-name Cloud9-Developer-Access \
39-
--assume-role-policy-document file://ec2-trust-policy.json
40-
```
36+
```bash
37+
aws iam create-role \
38+
--role-name Cloud9-Developer-Access \
39+
--assume-role-policy-document file://ec2-trust-policy.json
40+
```
4141

4242
3. Attach AWS Managed policy with AdministratorAccess to the new role
4343

44-
```bash
45-
aws iam attach-role-policy \
46-
--role-name Cloud9-Developer-Access \
47-
--policy-arn arn:aws:iam::aws:policy/AdministratorAccess
48-
```
44+
```bash
45+
aws iam attach-role-policy \
46+
--role-name Cloud9-Developer-Access \
47+
--policy-arn arn:aws:iam::aws:policy/AdministratorAccess
48+
```
4949

5050
4. Create EC2 instance profile
5151

52-
```bash
53-
aws iam create-instance-profile --instance-profile-name Cloud9-Developer-Access
54-
```
52+
```bash
53+
aws iam create-instance-profile --instance-profile-name Cloud9-Developer-Access
54+
```
5555

5656
5. Add the new role to the instance profile
5757

58-
```bash
59-
aws iam add-role-to-instance-profile \
60-
--instance-profile-name Cloud9-Developer-Access \
61-
--role-name Cloud9-Developer-Access
62-
```
58+
```bash
59+
aws iam add-role-to-instance-profile \
60+
--instance-profile-name Cloud9-Developer-Access \
61+
--role-name Cloud9-Developer-Access
62+
```
6363

6464
## Modify Cloud9 IAM role
6565

@@ -90,15 +90,14 @@ aws configure set default.region us-east-2
9090
Install NodeJS v18 and set as the default version
9191

9292
```bash
93-
nvm install 18
94-
nvm use 18
95-
nvm alias default 18
93+
nvm install 16
94+
nvm use 16
95+
nvm alias default 16
9696
```
9797

9898
The AWS CDK includes the CDK Toolkit (also called the CLI), a command line tool for working with your AWS CDK apps and stacks. Install the CDK toolkit
9999

100100
```bash
101-
102101
npm install -g aws-cdk
103102
cdk --version
104103
```
@@ -125,7 +124,7 @@ cdk bootstrap aws://<INSERT_YOUR_AWS_ACCOUNT_NUMBER>/<INSERT_YOUR_AWS_REGION>
125124

126125
2. Delete the instance profile and IAM role
127126

128-
```bash
129-
aws iam delete-instance-profile --instance-profile-name Cloud9-Developer-Access
130-
aws iam delete-role --role-name Cloud9-Developer-Access
131-
```
127+
```bash
128+
aws iam delete-instance-profile --instance-profile-name Cloud9-Developer-Access
129+
aws iam delete-role --role-name Cloud9-Developer-Access
130+
```

0 commit comments

Comments
 (0)