Skip to content

Commit d50c21e

Browse files
authored
Updates to ChatOps - Automated commit (#21)
## What * Adds chatops commands - '/test all' - '/test bats' - '/test readme' - '/test terratest' * Drops codefresh * Drops slash-command-dispatch * Removes codefresh badge * Rebuilds README ## Why * Change over from codefresh to GH Actions * Facilitate testing of PRs from forks
1 parent 5d03d6d commit d50c21e

File tree

11 files changed

+237
-137
lines changed

11 files changed

+237
-137
lines changed

.github/CODEOWNERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Use this file to define individuals or teams that are responsible for code in a repository.
2+
# Read more: <https://help.github.com/articles/about-codeowners/>
3+
#
4+
# Order is important: the last matching pattern takes the most precedence
5+
6+
# These owners will be the default owners for everything
7+
* @cloudposse/engineering @cloudposse/contributors
8+
9+
# Cloud Posse must review any changes to Makefiles
10+
**/Makefile @cloudposse/engineering
11+
**/Makefile.* @cloudposse/engineering
12+
13+
# Cloud Posse must review any changes to GitHub actions
14+
.github/* @cloudposse/engineering
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
Found a bug? Maybe our [Slack Community](https://slack.cloudposse.com) can help.
11+
12+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
13+
14+
## Describe the Bug
15+
A clear and concise description of what the bug is.
16+
17+
## Expected Behavior
18+
A clear and concise description of what you expected to happen.
19+
20+
## Steps to Reproduce
21+
Steps to reproduce the behavior:
22+
1. Go to '...'
23+
2. Run '....'
24+
3. Enter '....'
25+
4. See error
26+
27+
## Screenshots
28+
If applicable, add screenshots or logs to help explain your problem.
29+
30+
## Environment (please complete the following information):
31+
32+
Anything that will help us triage the bug will help. Here are some ideas:
33+
- OS: [e.g. Linux, OSX, WSL, etc]
34+
- Version [e.g. 10.15]
35+
36+
## Additional Context
37+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
5+
- name: Community Slack Team
6+
url: https://cloudposse.com/slack/
7+
about: |-
8+
Please ask and answer questions here.
9+
10+
- name: Office Hours
11+
url: https://cloudposse.com/office-hours/
12+
about: |-
13+
Join us every Wednesday for FREE Office Hours (lunch & learn).
14+
15+
- name: DevOps Accelerator Program
16+
url: https://cloudposse.com/accelerate/
17+
about: |-
18+
Own your infrastructure in record time. We build it. You drive it.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'feature request'
6+
assignees: ''
7+
8+
---
9+
10+
Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) or visit our [Slack Archive](https://archive.sweetops.com/).
11+
12+
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
13+
14+
## Describe the Feature
15+
16+
A clear and concise description of what the bug is.
17+
18+
## Expected Behavior
19+
20+
A clear and concise description of what you expected to happen.
21+
22+
## Use Case
23+
24+
Is your feature request related to a problem/challenge you are trying to solve? Please provide some additional context of why this feature or capability will be valuable.
25+
26+
## Describe Ideal Solution
27+
28+
A clear and concise description of what you want to happen. If you don't know, that's okay.
29+
30+
## Alternatives Considered
31+
32+
Explain what alternative solutions or features you've considered.
33+
34+
## Additional Context
35+
36+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## what
2+
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3+
* Use bullet points to be concise and to the point.
4+
5+
## why
6+
* Provide the justifications for the changes (e.g. business case).
7+
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8+
* Use bullet points to be concise and to the point.
9+
10+
## references
11+
* Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
12+
* Use `closes #123`, if this PR closes a GitHub issue `#123`
13+

.github/workflows/chatops.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: chatops
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
jobs:
7+
default:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: "Handle common commands"
12+
uses: cloudposse/actions/github/slash-command-dispatch@0.15.0
13+
with:
14+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
15+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
16+
repository: cloudposse/actions
17+
commands: rebuild-readme, terraform-fmt
18+
permission: none
19+
issue-type: pull-request
20+
21+
test:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: "Checkout commit"
25+
uses: actions/checkout@v2
26+
- name: "Run tests"
27+
uses: cloudposse/actions/github/slash-command-dispatch@0.15.0
28+
with:
29+
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
30+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
31+
repository: cloudposse/actions
32+
commands: test
33+
permission: none
34+
issue-type: pull-request
35+
reactions: false
36+
37+

README.md

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
[![Cloud Posse][logo]](https://cpco.io/homepage)
4444

45-
# terraform-aws-dynamodb-autoscaler [![Codefresh Build Status](https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-aws-dynamodb-autoscaler?type=cf-1)](https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1ce746c7657379f0d1e5fd) [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-dynamodb-autoscaler.svg)](https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
45+
# terraform-aws-dynamodb-autoscaler [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-dynamodb-autoscaler.svg)](https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
4646

4747

4848
Terraform module to provision DynamoDB autoscaler.
@@ -121,38 +121,52 @@ Available targets:
121121
lint Lint terraform code
122122
123123
```
124+
## Requirements
125+
126+
| Name | Version |
127+
|------|---------|
128+
| terraform | ~> 0.12.0 |
129+
| aws | ~> 2.0 |
130+
| null | ~> 2.0 |
131+
132+
## Providers
133+
134+
| Name | Version |
135+
|------|---------|
136+
| aws | ~> 2.0 |
137+
124138
## Inputs
125139

126140
| Name | Description | Type | Default | Required |
127-
|------|-------------|:----:|:-----:|:-----:|
128-
| attributes | Additional attributes (e.g. `1`) | list(string) | `<list>` | no |
129-
| autoscale_max_read_capacity | DynamoDB autoscaling max read capacity | number | `20` | no |
130-
| autoscale_max_write_capacity | DynamoDB autoscaling max write capacity | number | `20` | no |
131-
| autoscale_min_read_capacity | DynamoDB autoscaling min read capacity | number | `5` | no |
132-
| autoscale_min_write_capacity | DynamoDB autoscaling min write capacity | number | `5` | no |
133-
| autoscale_read_target | The target value for DynamoDB read autoscaling | number | `50` | no |
134-
| autoscale_write_target | The target value for DynamoDB write autoscaling | number | `50` | no |
135-
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes` | string | `-` | no |
136-
| dynamodb_indexes | List of DynamoDB indexes | list(string) | `<list>` | no |
137-
| dynamodb_table_arn | DynamoDB table ARN | string | - | yes |
138-
| dynamodb_table_name | DynamoDB table name | string | - | yes |
139-
| enabled | Set to false to prevent the module from creating any resources | bool | `true` | no |
140-
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | string | `` | no |
141-
| name | Solution name, e.g. 'app' or 'jenkins' | string | `` | no |
142-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | string | `` | no |
143-
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | string | `` | no |
144-
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | map(string) | `<map>` | no |
141+
|------|-------------|------|---------|:--------:|
142+
| attributes | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no |
143+
| autoscale\_max\_read\_capacity | DynamoDB autoscaling max read capacity | `number` | `20` | no |
144+
| autoscale\_max\_write\_capacity | DynamoDB autoscaling max write capacity | `number` | `20` | no |
145+
| autoscale\_min\_read\_capacity | DynamoDB autoscaling min read capacity | `number` | `5` | no |
146+
| autoscale\_min\_write\_capacity | DynamoDB autoscaling min write capacity | `number` | `5` | no |
147+
| autoscale\_read\_target | The target value for DynamoDB read autoscaling | `number` | `50` | no |
148+
| autoscale\_write\_target | The target value for DynamoDB write autoscaling | `number` | `50` | no |
149+
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes` | `string` | `"-"` | no |
150+
| dynamodb\_indexes | List of DynamoDB indexes | `list(string)` | `[]` | no |
151+
| dynamodb\_table\_arn | DynamoDB table ARN | `string` | n/a | yes |
152+
| dynamodb\_table\_name | DynamoDB table name | `string` | n/a | yes |
153+
| enabled | Set to false to prevent the module from creating any resources | `bool` | `true` | no |
154+
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | `string` | `""` | no |
155+
| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `""` | no |
156+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `""` | no |
157+
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `""` | no |
158+
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |
145159

146160
## Outputs
147161

148162
| Name | Description |
149163
|------|-------------|
150-
| appautoscaling_read_target_id | Appautoscaling read target ID |
151-
| appautoscaling_read_target_index_id | Appautoscaling read target index ID |
152-
| appautoscaling_write_target_id | Appautoscaling write target ID |
153-
| appautoscaling_write_target_index_id | Appautoscaling write target index ID |
154-
| autoscaler_iam_role_arn | Autoscaler IAM Role ARN |
155-
| autoscaler_iam_role_id | Autoscaler IAM Role ID |
164+
| appautoscaling\_read\_target\_id | Appautoscaling read target ID |
165+
| appautoscaling\_read\_target\_index\_id | Appautoscaling read target index ID |
166+
| appautoscaling\_write\_target\_id | Appautoscaling write target ID |
167+
| appautoscaling\_write\_target\_index\_id | Appautoscaling write target index ID |
168+
| autoscaler\_iam\_role\_arn | Autoscaler IAM Role ARN |
169+
| autoscaler\_iam\_role\_id | Autoscaler IAM Role ID |
156170

157171

158172

@@ -207,6 +221,10 @@ We deliver 10x the value for a fraction of the cost of a full-time engineer. Our
207221

208222
Join our [Open Source Community][slack] on Slack. It's **FREE** for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally *sweet* infrastructure.
209223

224+
## Discourse Forums
225+
226+
Participate in our [Discourse Forums][discourse]. Here you'll find answers to commonly asked questions. Most questions will be related to the enormous number of projects we support on our GitHub. Come here to collaborate on answers, find solutions, and get ideas about the products and services we value. It only takes a minute to get started! Just sign in with SSO using your GitHub account.
227+
210228
## Newsletter
211229

212230
Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
@@ -320,6 +338,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
320338
[testimonial]: https://cpco.io/leave-testimonial?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=testimonial
321339
[office_hours]: https://cloudposse.com/office-hours?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=office_hours
322340
[newsletter]: https://cpco.io/newsletter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=newsletter
341+
[discourse]: https://ask.sweetops.com/?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=discourse
323342
[email]: https://cpco.io/email?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=email
324343
[commercial_support]: https://cpco.io/commercial-support?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=commercial_support
325344
[we_love_open_source]: https://cpco.io/we-love-open-source?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-dynamodb-autoscaler&utm_content=we_love_open_source

README.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
---
21
#
32
# This is the canonical configuration for the `README.md`
43
# Run `make readme` to rebuild the `README.md`
54
#
65

76
# Name of this project
87
name: terraform-aws-dynamodb-autoscaler
9-
108
# Tags of this project
119
tags:
1210
- aws
@@ -19,46 +17,36 @@ tags:
1917
- dynamodb-database
2018
- iops
2119
- table
22-
2320
# Categories of this project
2421
categories:
2522
- terraform-modules/databases
26-
2723
# Logo for this project
2824
#logo: docs/logo.png
2925

3026
# License of this project
3127
license: "APACHE2"
32-
3328
# Canonical GitHub repo
3429
github_repo: cloudposse/terraform-aws-dynamodb-autoscaler
35-
3630
# Badges to display
3731
badges:
38-
- name: "Codefresh Build Status"
39-
image: "https://g.codefresh.io/api/badges/pipeline/cloudposse/terraform-modules%2Fterraform-aws-dynamodb-autoscaler?type=cf-1"
40-
url: "https://g.codefresh.io/public/accounts/cloudposse/pipelines/5d1ce746c7657379f0d1e5fd"
4132
- name: "Latest Release"
4233
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-dynamodb-autoscaler.svg"
4334
url: "https://github.com/cloudposse/terraform-aws-dynamodb-autoscaler/releases/latest"
4435
- name: "Slack Community"
4536
image: "https://slack.cloudposse.com/badge.svg"
4637
url: "https://slack.cloudposse.com"
47-
4838
related:
4939
- name: "terraform-aws-dynamodb"
5040
description: "Terraform module that implements AWS DynamoDB with support for AutoScaling"
5141
url: "https://github.com/cloudposse/terraform-aws-dynamodb"
5242
- name: "terraform-aws-tfstate-backend"
5343
description: "Provision an S3 bucket to store terraform.tfstate file and a DynamoDB table to lock the state file to prevent concurrent modifications and state corruption"
5444
url: "https://github.com/cloudposse/terraform-aws-tfstate-backend"
55-
5645
# Short description of this project
5746
description: |-
5847
Terraform module to provision DynamoDB autoscaler.
5948
6049
Autoscaler scales up/down the provisioned OPS for a DynamoDB table based on the load.
61-
6250
# How to use this project
6351
usage: |-
6452
```hcl
@@ -78,11 +66,9 @@ usage: |-
7866
autoscale_max_write_capacity = 20
7967
}
8068
```
81-
8269
include:
8370
- "docs/targets.md"
8471
- "docs/terraform.md"
85-
8672
# Contributors to this project
8773
contributors:
8874
- name: "Erik Osterman"

0 commit comments

Comments
 (0)