Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #206 from kinvolk/iaguis/s3-dynamodb-doc
Browse files Browse the repository at this point in the history
docs/backend/s3: add primary key requirement to dynamodb table
  • Loading branch information
iaguis authored Mar 23, 2020
2 parents 903ed9d + a6d3e12 commit 2c0c057
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/configuration-reference/backend/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ used.
## Prerequisites

* AWS S3 bucket to be used should already be created.
* DynamoDB table to be used for state locking should already be created.
* DynamoDB table to be used for state locking should already be created. The table must have a primary key named LockID.
* Correct IAM permissions for the S3 bucket and DynamoDB Table. At minimum the following are the
permissions required:
* [S3 bucket permissions](https://www.terraform.io/docs/backends/types/s3.html#s3-bucket-permissions).
Expand All @@ -44,14 +44,14 @@ backend "s3" {

## Attribute reference

| Argument | Description | Default | Required |
|-----------------------------|--------------------------------------------------------------|:-------:|:--------:|
| `backend.s3` | AWS S3 backend configuration block. | - | false |
| `backend.s3.bucket` | Name of the S3 bucket where Lokomotive stores cluster state. | - | true |
| `backend.s3.key` | Path in the S3 bucket to store the cluster state. | - | true |
| `backend.s3.region` | AWS Region of the S3 bucket. | - | false |
| `backend.s3.aws_creds_path` | Path to the AWS credentials file. | - | false |
| `backend.s3.dynamodb_table` | Name of the DynamoDB table for locking the cluster state. | - | false |
| Argument | Description | Default | Required |
|-----------------------------|--------------------------------------------------------------------------------------------------------------|:-------:|:--------:|
| `backend.s3` | AWS S3 backend configuration block. | - | false |
| `backend.s3.bucket` | Name of the S3 bucket where Lokomotive stores cluster state. | - | true |
| `backend.s3.key` | Path in the S3 bucket to store the cluster state. | - | true |
| `backend.s3.region` | AWS Region of the S3 bucket. | - | false |
| `backend.s3.aws_creds_path` | Path to the AWS credentials file. | - | false |
| `backend.s3.dynamodb_table` | Name of the DynamoDB table for locking the cluster state. The table must have a primary key named LockID. | - | false |

>NOTE: In order for the installer to configure the credentials for S3 backend either pass them as
environment variables or in the config above.
Expand Down

0 comments on commit 2c0c057

Please sign in to comment.