forked from vishalmali/AWS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateUser.txt
224 lines (120 loc) · 3.05 KB
/
CreateUser.txt
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
https://futurenova2016.signin.aws.amazon.com/console
add user
AWS Management Console access
custom password -
uncheck - User must create a new password at next sign-in
Add user to group - unexpected error -?
create user
create a new group - oraclegroup
attach policy - EC2FullAccess
create group
select oraclegroup - group actions
add users to group
user 40
-----------------------------
putty.exe - to start virtual machine
puttygen - converting from pem file to ppk
putty will accept ppk file
EC2 instance - select region
Mumbai - 5
name value - oraclename(instance name)
configure security group - HTTP
review and launch
launch
create a new key pair - oraclekeypairname - download keypairname
launch instance
view instances
select instance - get ipaddress 35.163.218.82
run puttygen
load - pem file
save private key
create ppk file
start putty
host name(or ip address) - [email protected]
saved session - [email protected] -save
SSH -Auth -Private key file for authentication -select oracleppk file
sudo su
Git installation :
------------------
yum install git -y
java installation :
-------------------
yum install java-1.7.0-openjdk-devel -y
yum install java-1.8.0-openjdk-devel -y
java program on ec2 instance
----------------------------
mkdir test
cd test
nano Demo.java
ctrl+x and save - Yes then enter
S3-5 TB
-------
static web site
versioning
create Bucket - orabucket -in small letters
selet orabucket
upload your application - home.html
Properties - static website hosting -enable website hosting
Index document - home.html - save
select application - actions - make public
endpoint - orabucket.s3-website-us-west-2.amazonaws.com
Dynamodb and java demo
----------------------
to install gradle on ec2
------------------------
cd /opt
wget https://services.gradle.org/distributions/gradle-3.1-bin.zip
unzip gradle-3.1-bin.zip
ln -s gradle-3.1 gradle
vim /etc/profile.d/gradle-env.sh
export GRADLE_HOME=/opt/gradle
export PATH=$PATH:$GRADLE_HOME/bin
esc :wq
cd /home
cd ec2-user/
source /etc/profile.d/gradle-env.sh
git init
git pull gradleproject
aws configure
IAM
click on user - sanjay
security credentials - create access key - download csv file.
copy key value
gradle build
gradle run
service - dynamodb - default region -North Viginia
Tables - items - to view the records
Elastic BeanStalk
-----------------
task automation..
services
compute
Elastic Beanstalk
create new application
application name -
web server environment
platform - tomcat
configure more option
security - modify
key pair - oraclekeypairname
I am instance profile - aws-elasticbeanstalk-ec2-role
create environment
after successful installation
click on link to see home page
SNS
---
services
mobile
create topic
topic name
display name
copy arn : e.g. => arn:aws:sns:sa-east-1:544864730040:topic123
create subscription
change protocol from http to email
endpoint - [email protected]
confirm subscription
refresh
publish to topic
Text messaging(SMS)
Send a text messages(SMS)
..