Skip to content

Commit 109dd0e

Browse files
committed
fix inline policy in Advanced installation in README.md
1 parent b6912ad commit 109dd0e

File tree

1 file changed

+34
-32
lines changed

1 file changed

+34
-32
lines changed

README.md

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<img src="http://awsmedia.s3.amazonaws.com/AWS_Logo_PoweredBy_127px.png" alt="Powered by Amazon Web Services" align="right">
22

3-
# LambdaBlogPlatform
3+
# LambdaBlogPlatform
44
## serverless blogging platform built with AWS
55

66
## Table of Contents
77
* [About](#about)
88
* [Installation prerequisites](#prerequisites)
99
* [Installation](#installation)
1010
* [Advanced installation](#installation_advanced)
11-
11+
1212
## <a name="about"></a>About
1313
![alt tag](https://s3-us-west-2.amazonaws.com/s-media.si/static/img/LBP_perspective_UI.jpg)
1414
AWS Lambda Blog Platform is a complete blogging solution that uses the following Amazon Web Services for operation
@@ -18,12 +18,12 @@ AWS Lambda Blog Platform is a complete blogging solution that uses the following
1818
* S3
1919
* Cloudfront
2020
* SES
21-
21+
2222
It runs completely serverless - free of any inflexible hardware infrastructure. The whole system running as a team of small misroservices means that the running expenses are without any overhead even at the smallest scale.
2323

2424
## <a name="prerequisites"></a>Installation prerequisites
2525
* Have an AWS account
26-
* Have your domain/subdomain set up in Route53
26+
* Have your domain/subdomain set up in Route53
2727
* make sure you can receive email on one of the following adressees for https certificate generation (if you dont have mail server set up, you can use https://github.com/sirceljm/AWS-SES-simple-mail-forward to forward emails to your email address)
2828
* administrator@domain.com
2929
* hostmaster@domain.com
@@ -68,7 +68,7 @@ It runs completely serverless - free of any inflexible hardware infrastructure.
6868
}
6969
]
7070
}
71-
```
71+
```
7272
* (install script will add other permisions that are necessary for installation)
7373
* run ```node install.js```
7474
* wizard will take you through the process of installation
@@ -79,42 +79,44 @@ It runs completely serverless - free of any inflexible hardware infrastructure.
7979
* run ```npm install```
8080
* Create a new user in IAM (you will put this user name into install_config.js later)
8181
* [IAM -> Users -> Add User -> Access type -> check Programmatic access]
82-
* Copy account keys for the user and make a json file that looks like this:
82+
* Copy account keys for the user and make a json file that looks like this:
8383
![user_access_keys](https://s3-us-west-2.amazonaws.com/s-media.si/static/img/user_access_keys.png)
8484

8585
```json
8686
{
87-
"accessKeyId": "AK************",
88-
"secretAccessKey": "BX**********************",
87+
"accessKeyId": "AK************",
88+
"secretAccessKey": "BX**********************",
8989
"region": "eu-west-1"
9090
}
9191
```
92-
* add a new inline policy to the user
92+
* add a new inline policy to the user
9393
* [IAM -> Users -> your_user -> Permissions -> Add inline policy -> Custom policy -> Select -> Copy JSON below and enter a policy name
94-
94+
9595
```json
9696

97-
{
98-
"Version": "2012-10-17",
99-
"Statement": [
100-
{
101-
"Sid": "Stmt1481118325000",
102-
"Effect": "Allow",
103-
"Action": [
104-
"iam:CreatePolicy",
105-
"iam:CreateRole",
106-
"iam:GetPolicy",
107-
"iam:GetRole",
108-
"iam:AttachUserPolicy",
109-
"iam:AttachRolePolicy",
110-
"iam:PassRole"
111-
],
112-
"Resource": [
113-
"*"
114-
]
115-
}
116-
]
117-
}
97+
{
98+
"Version": "2012-10-17",
99+
"Statement": [
100+
{
101+
"Sid": "Stmt1481118325000",
102+
"Effect": "Allow",
103+
"Action": [
104+
"iam:CreatePolicy",
105+
"iam:CreateRole",
106+
"iam:GetPolicy",
107+
"iam:GetRole",
108+
"iam:AttachUserPolicy",
109+
"iam:AttachRolePolicy",
110+
"iam:PassRole",
111+
"route53:ListHostedZones",
112+
"acm:ListCertificates"
113+
],
114+
"Resource": [
115+
"*"
116+
]
117+
}
118+
]
119+
}
118120
```
119121

120122
-> Attach policy]
@@ -126,6 +128,6 @@ It runs completely serverless - free of any inflexible hardware infrastructure.
126128
![alt tag](https://s3-us-west-2.amazonaws.com/s-media.si/static/img/cert_arn.png)
127129
* get your recaptcha key (you can edit this later in API Gateway)
128130
* copy install/install_config_template.js to install/install_config.js
129-
* change values in install/install_config.js
131+
* change values in install/install_config.js
130132
* run ```node install.js```
131133
* if everything went smooth you should see your page after CloudFront changes resolve (usually takes around 15 minutes)

0 commit comments

Comments
 (0)