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
If CLI is not your thing, then you can upload code manaully
105
+
106
+
Create new lambda function, set handler to **s3rpm.lambda_handler**, runtime to **python 3.6**
107
+
108
+
Upload `code.zip` to lambda function
109
+
110
+
### The triggers
111
+
112
+
* Object Created(All), suffix 'rpm'
113
+
* Object Removed(All), suffix 'rpm'
114
+
* If you are using certain directory as a repo, set it as prefix
115
+
116
+
### Set up S3
55
117
Upload secret key file to location you specified as GPG_KEY
56
118
57
-
Upload GPG SIGNED .rpm file to desired folder, lambda function should now keep your repository up to date
119
+
Upload .rpm file to desired folder, lambda function should now keep your repository up to date
58
120
59
121
## Setting up yum
60
122
61
-
**First time set up**
123
+
### First time set up
62
124
63
125
create `example.repo` file in `/etc/yum.repos.d/example.repo`
64
126
```
@@ -78,23 +140,29 @@ gpgkey=<link to public key of key you used for signing metadata files>
78
140
* You can do `repo_gpgcheck=0` to skip gpg verification when installing packages
79
141
* You can do `gpgcheck=1` if you are uploading signed rpm packages(lambda does not sign them, it signs only metadata xml file)
80
142
143
+
### Install/update
81
144
Install package
82
145
```
83
-
su
84
-
yum install <package name>
146
+
sudo yum install <package name>
85
147
```
86
148
87
149
Upgrading package
88
150
```
89
-
su
90
-
yum upgrade
151
+
sudo yum upgrade
91
152
```
92
153
93
154
## Notes
94
155
95
-
.rpm and repodata/* in repository directory are and should be publicly accessible
156
+
* .rpm and repodata/* in repository directory are and should be publicly accessible for the
157
+
158
+
* Don't forget to increase the timeout of lambda function
96
159
97
-
Don't forget to increase the timeout of lambda function
160
+
* If somebody tries to inject a malicious rpm file in your repo it will be automaticly added to repository. It is your job to make bucket secure enough for this not to happen.!!!
98
161
99
-
If somebody tries to inject a malicious rpm file in your repo it will be automaticly added to repository. It is your job to make bucket secure enough for this not to happen.!!!
0 commit comments