Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eahefnawy authored Jul 7, 2020
1 parent 108e1f1 commit 5e8b814
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Check out the **[Serverless Fullstack Application](https://github.com/serverless
<img src="/assets/deploy-demo.gif" height="250" align="right">

1. [**Install**](#1-install)
2. [**Create**](#2-create)
2. [**Initialize**](#2-initialize)
3. [**Deploy**](#3-deploy)
4. [**Configure**](#4-configure)
5. [**Develop**](#5-develop)
Expand All @@ -43,30 +43,23 @@ To get started with component, install the latest version of the Serverless Fram
$ npm install -g serverless
```

### 2. Create
### 2. Initialize

You can easily create a new `aws-dynamodb` instance just by using the following command and template url.
The easiest way to start using the `aws-dynamodb` component is by initializing the `aws-dynamodb-starter` template. Just run this command:

```
$ serverless create --template-url https://github.com/serverless/components/tree/master/templates/aws-dynamodb
$ cd aws-dynamodb
$ serverless init aws-dynamodb-starter
$ cd aws-dynamodb-starter
```

Then, create a new `.env` file in the root of the `aws-dynamodb` directory right next to `serverless.yml`, and add your AWS access keys:
This will create an empty `.env` file. Open that `.env` file and can add in your AWS credentials

```
# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
```

You should now have a directory that looks something like this:

```
|- serverless.yml
|- .env
```

### 3. Deploy

Once you have the directory set up, you're now ready to deploy. Just run the following command from within the directory containing the `serverless.yml` file:
Expand Down

0 comments on commit 5e8b814

Please sign in to comment.