Skip to content

Commit 6c3353f

Browse files
authored
Add slash-command-dispatch GitHub Actions workflow (#37)
* Add `slash-command-dispatch` GitHub Actions workflow * readme update * fix tests
1 parent a55d7a6 commit 6c3353f

11 files changed

+221
-51
lines changed

.github/CODEOWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+
* @cloudposse/engineering

.github/ISSUE_TEMPLATE/bug_report.md

+37
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

+18
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.
+36
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) in the `#geodesic` channel or visit our [Slack Archive](https://archive.sweetops.com/geodesic/).
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

+13
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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Slash Command Dispatch
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
jobs:
7+
slashCommandDispatch:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Slash Command Dispatch
13+
uses: cloudposse/actions/github/[email protected]
14+
with:
15+
token: ${{ secrets.GITHUB_BOT_TOKEN }}
16+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
17+
repository: cloudposse/actions
18+
commands: rebuild-readme, terraform-fmt
19+
permission: none
20+
issue-type: pull-request

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2018-2019 Cloud Posse, LLC
189+
Copyright 2018-2020 Cloud Posse, LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

+89-47
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,43 @@
1-
<!-- This file was automatically generated by the `build-harness`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->
1+
<!--
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
** DO NOT EDIT THIS FILE
17+
**
18+
** This file was automatically generated by the `build-harness`.
19+
** 1) Make all changes to `README.yaml`
20+
** 2) Run `make init` (you only need to do this once)
21+
** 3) Run`make readme` to rebuild this file.
22+
**
23+
** (We maintain HUNDREDS of open source projects. This is how we maintain our sanity.)
24+
**
25+
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
38+
39+
40+
-->
241
[![README Header][readme_header_img]][readme_header_link]
342

443
[![Cloud Posse][logo]](https://cpco.io/homepage)
@@ -182,42 +221,47 @@ Check out these related projects.
182221

183222
## Help
184223

185-
**Got a question?**
224+
**Got a question?** We got answers.
186225

187226
File a GitHub [issue](https://github.com/cloudposse/terraform-aws-tfstate-backend/issues), send us an [email][email] or join our [Slack Community][slack].
188227

189228
[![README Commercial Support][readme_commercial_support_img]][readme_commercial_support_link]
190229

191-
## Commercial Support
192-
193-
Work directly with our team of DevOps experts via email, slack, and video conferencing.
194-
195-
We provide [*commercial support*][commercial_support] for all of our [Open Source][github] projects. As a *Dedicated Support* customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer.
230+
## DevOps Accelerator for Startups
196231

197-
[![E-Mail](https://img.shields.io/badge/[email protected])][email]
198232

199-
- **Questions.** We'll use a Shared Slack channel between your team and ours.
200-
- **Troubleshooting.** We'll help you triage why things aren't working.
201-
- **Code Reviews.** We'll review your Pull Requests and provide constructive feedback.
202-
- **Bug Fixes.** We'll rapidly work to fix any bugs in our projects.
203-
- **Build New Terraform Modules.** We'll [develop original modules][module_development] to provision infrastructure.
204-
- **Cloud Architecture.** We'll assist with your cloud strategy and design.
205-
- **Implementation.** We'll provide hands-on support to implement our reference architectures.
233+
We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
206234

235+
[![Learn More](https://img.shields.io/badge/learn%20more-success.svg?style=for-the-badge)][commercial_support]
207236

237+
Work directly with our team of DevOps experts via email, slack, and video conferencing.
208238

209-
## Terraform Module Development
210-
211-
Are you interested in custom Terraform module development? Submit your inquiry using [our form][module_development] today and we'll get back to you ASAP.
239+
We deliver 10x the value for a fraction of the cost of a full-time engineer. Our track record is not even funny. If you want things done right and you need it done FAST, then we're your best bet.
212240

241+
- **Reference Architecture.** You'll get everything you need from the ground up built using 100% infrastructure as code.
242+
- **Release Engineering.** You'll have end-to-end CI/CD with unlimited staging environments.
243+
- **Site Reliability Engineering.** You'll have total visibility into your apps and microservices.
244+
- **Security Baseline.** You'll have built-in governance with accountability and audit logs for all changes.
245+
- **GitOps.** You'll be able to operate your infrastructure via Pull Requests.
246+
- **Training.** You'll receive hands-on training so your team can operate what we build.
247+
- **Questions.** You'll have a direct line of communication between our teams via a Shared Slack channel.
248+
- **Troubleshooting.** You'll get help to triage when things aren't working.
249+
- **Code Reviews.** You'll receive constructive feedback on Pull Requests.
250+
- **Bug Fixes.** We'll rapidly work with you to fix any bugs in our projects.
213251

214252
## Slack Community
215253

216254
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.
217255

218256
## Newsletter
219257

220-
Signup 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.
258+
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.
259+
260+
## Office Hours
261+
262+
[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
263+
264+
[![zoom](https://img.cloudposse.com/fit-in/200x200/https://cloudposse.com/wp-content/uploads/2019/08/Powered-by-Zoom.png")][office_hours]
221265

222266
## Contributing
223267

@@ -242,7 +286,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
242286

243287
## Copyright
244288

245-
Copyright © 2017-2019 [Cloud Posse, LLC](https://cpco.io/copyright)
289+
Copyright © 2017-2020 [Cloud Posse, LLC](https://cpco.io/copyright)
246290

247291

248292

@@ -301,41 +345,39 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
301345
|---|---|---|---|
302346

303347
[aknysh_homepage]: https://github.com/aknysh
304-
[aknysh_avatar]: https://github.com/aknysh.png?size=150
348+
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
305349
[osterman_homepage]: https://github.com/osterman
306-
[osterman_avatar]: https://github.com/osterman.png?size=150
350+
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
307351
[maartenvanderhoef_homepage]: https://github.com/maartenvanderhoef
308-
[maartenvanderhoef_avatar]: https://github.com/maartenvanderhoef.png?size=150
352+
[maartenvanderhoef_avatar]: https://img.cloudposse.com/150x150/https://github.com/maartenvanderhoef.png
309353
[SweetOps_homepage]: https://github.com/SweetOps
310-
[SweetOps_avatar]: https://github.com/SweetOps.png?size=150
311-
312-
354+
[SweetOps_avatar]: https://img.cloudposse.com/150x150/https://github.com/SweetOps.png
313355

314356
[![README Footer][readme_footer_img]][readme_footer_link]
315357
[![Beacon][beacon]][website]
316358

317359
[logo]: https://cloudposse.com/logo-300x69.svg
318-
[docs]: https://cpco.io/docs
319-
[website]: https://cpco.io/homepage
320-
[github]: https://cpco.io/github
321-
[jobs]: https://cpco.io/jobs
322-
[hire]: https://cpco.io/hire
323-
[slack]: https://cpco.io/slack
324-
[linkedin]: https://cpco.io/linkedin
325-
[twitter]: https://cpco.io/twitter
326-
[testimonial]: https://cpco.io/leave-testimonial
327-
[newsletter]: https://cpco.io/newsletter
328-
[email]: https://cpco.io/email
329-
[commercial_support]: https://cpco.io/commercial-support
330-
[we_love_open_source]: https://cpco.io/we-love-open-source
331-
[module_development]: https://cpco.io/module-development
332-
[terraform_modules]: https://cpco.io/terraform-modules
333-
[readme_header_img]: https://cloudposse.com/readme/header/img?repo=cloudposse/terraform-aws-tfstate-backend
334-
[readme_header_link]: https://cloudposse.com/readme/header/link?repo=cloudposse/terraform-aws-tfstate-backend
335-
[readme_footer_img]: https://cloudposse.com/readme/footer/img?repo=cloudposse/terraform-aws-tfstate-backend
336-
[readme_footer_link]: https://cloudposse.com/readme/footer/link?repo=cloudposse/terraform-aws-tfstate-backend
337-
[readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img?repo=cloudposse/terraform-aws-tfstate-backend
338-
[readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?repo=cloudposse/terraform-aws-tfstate-backend
360+
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=docs
361+
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=website
362+
[github]: https://cpco.io/github?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=github
363+
[jobs]: https://cpco.io/jobs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=jobs
364+
[hire]: https://cpco.io/hire?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=hire
365+
[slack]: https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=slack
366+
[linkedin]: https://cpco.io/linkedin?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=linkedin
367+
[twitter]: https://cpco.io/twitter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=twitter
368+
[testimonial]: https://cpco.io/leave-testimonial?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=testimonial
369+
[office_hours]: https://cloudposse.com/office-hours?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=office_hours
370+
[newsletter]: https://cpco.io/newsletter?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=newsletter
371+
[email]: https://cpco.io/email?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=email
372+
[commercial_support]: https://cpco.io/commercial-support?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=commercial_support
373+
[we_love_open_source]: https://cpco.io/we-love-open-source?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=we_love_open_source
374+
[terraform_modules]: https://cpco.io/terraform-modules?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=terraform_modules
375+
[readme_header_img]: https://cloudposse.com/readme/header/img
376+
[readme_header_link]: https://cloudposse.com/readme/header/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=readme_header_link
377+
[readme_footer_img]: https://cloudposse.com/readme/footer/img
378+
[readme_footer_link]: https://cloudposse.com/readme/footer/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=readme_footer_link
379+
[readme_commercial_support_img]: https://cloudposse.com/readme/commercial-support/img
380+
[readme_commercial_support_link]: https://cloudposse.com/readme/commercial-support/link?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-tfstate-backend&utm_content=readme_commercial_support_link
339381
[share_twitter]: https://twitter.com/intent/tweet/?text=terraform-aws-tfstate-backend&url=https://github.com/cloudposse/terraform-aws-tfstate-backend
340382
[share_linkedin]: https://www.linkedin.com/shareArticle?mini=true&title=terraform-aws-tfstate-backend&url=https://github.com/cloudposse/terraform-aws-tfstate-backend
341383
[share_reddit]: https://reddit.com/submit/?url=https://github.com/cloudposse/terraform-aws-tfstate-backend

examples/complete/fixtures.us-west-1.tfvars

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ namespace = "eg"
44

55
stage = "test"
66

7-
name = "terraform"
7+
name = "terraform-tfstate-backend"

test/src/examples_complete_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ func TestExamplesComplete(t *testing.T) {
2828
// Run `terraform output` to get the value of an output variable
2929
s3BucketId := terraform.Output(t, terraformOptions, "s3_bucket_id")
3030

31-
expectedS3BucketId := "eg-test-terraform-state"
31+
expectedS3BucketId := "eg-test-terraform-tfstate-backend-state"
3232
// Verify we're getting back the outputs we expect
3333
assert.Equal(t, expectedS3BucketId, s3BucketId)
3434

3535
// Run `terraform output` to get the value of an output variable
3636
dynamodbTableName := terraform.Output(t, terraformOptions, "dynamodb_table_name")
3737

38-
expectedDynamodbTableName := "eg-test-terraform-state-lock"
38+
expectedDynamodbTableName := "eg-test-terraform-tfstate-backend-state-lock"
3939
// Verify we're getting back the outputs we expect
4040
assert.Equal(t, expectedDynamodbTableName, dynamodbTableName)
4141
}

0 commit comments

Comments
 (0)