-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
74 lines (63 loc) · 1.63 KB
/
notes.txt
File metadata and controls
74 lines (63 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## install aws cli
sudo yum -y update
sudo yum -y groupinstall development
sudo yum install -y unzip
sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum -y install python36u python36u-pip xauth xterm tigervnc-server
sudo yum -y groups install "GNOME Desktop"
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo /awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
sudo yum install -y nodejs gvim atom ruby
sudo npm install -g gulp yarn jshint csshint editorconfig
sudo bash -c 'echo "X11Forwarding yes" >> /etc/ssh/sshd_config '
sudo service sshd restart
# user to run:
```sh
$ aws configure
```
will need AWS access Key ID
AWS Secret Access Key
set default region
set default output
VPC: vpc-103c1076
VPC CIDR: 172.31.0.0/16
VPC Endpoint: vpce-060cda6f
Dev Setup Policy:
{
"Version": "2012-10-17",
"Id": "Policy1415115909153",
"Statement": [
{
"Sid": "Access-VPC-only",
"Action": "s3:*",
"Effect": "Deny",
"Resource": ["arn:aws:s3:::intern-dev-setup",
"arn:aws:s3:::intern-dev-setup/*"],
"Condition": {
"StringNotEquals": {
"aws:sourceVpce": "vpce-060cda6f"
}
},
"Principal": "*"
}
]
}
{
"Version": "2012-10-17",
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::intern-dev-setup/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "172.31.0.0/16"
}
}
}
]
}