Skip to content

Commit

Permalink
Added initial terraform code (#1)
Browse files Browse the repository at this point in the history
* Added initial terraform code
  • Loading branch information
goruha authored Nov 29, 2019
1 parent 928b7d9 commit d166a5c
Show file tree
Hide file tree
Showing 22 changed files with 810 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Use this file to define individuals or teams that are responsible for code in a repository.
# Read more: <https://help.github.com/articles/about-codeowners/>

* @cloudposse/engineering
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

Found a bug? Maybe our [Slack Community](https://slack.cloudposse.com) can help.

[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

## Describe the Bug
A clear and concise description of what the bug is.

## Expected Behavior
A clear and concise description of what you expected to happen.

## Steps to Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Run '....'
3. Enter '....'
4. See error

## Screenshots
If applicable, add screenshots or logs to help explain your problem.

## Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:
- OS: [e.g. Linux, OSX, WSL, etc]
- Version [e.g. 10.15]

## Additional Context
Add any other context about the problem here.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
blank_issues_enabled: false

contact_links:

- name: Community Slack Team
url: https://cloudposse.com/slack/
about: |-
Please ask and answer questions here.
- name: Office Hours
url: https://cloudposse.com/office-hours/
about: |-
Join us every Wednesday for FREE Office Hours (lunch & learn).
- name: DevOps Accelerator Program
url: https://cloudposse.com/accelerate/
about: |-
Own your infrastructure in record time. We build it. You drive it.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Feature Request
about: Suggest an idea for this project
title: ''
labels: 'feature request'
assignees: ''

---

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/).

[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

## Describe the Feature

A clear and concise description of what the bug is.

## Expected Behavior

A clear and concise description of what you expected to happen.

## Use Case

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.

## Describe Ideal Solution

A clear and concise description of what you want to happen. If you don't know, that's okay.

## Alternatives Considered

Explain what alternative solutions or features you've considered.

## Additional Context

Add any other context or screenshots about the feature request here.
Empty file.
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## what
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
* Use bullet points to be concise and to the point.

## why
* Provide the justifications for the changes (e.g. business case).
* Describe why these changes were made (e.g. why do these commits fix the problem?)
* Use bullet points to be concise and to the point.

## references
* Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
* Use `closes #123`, if this PR closes a GitHub issue `#123`

16 changes: 16 additions & 0 deletions .github/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to author to set PR creator as assignee
addAssignees: author

# A list of reviewers to be added to pull requests (GitHub user name)
# Teams are not supported (wontfix): https://github.com/kentaro-m/auto-assign/issues/39
reviewers:
- aknysh
- osterman
- goruha

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 0
2 changes: 2 additions & 0 deletions .github/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README:
- README.md
13 changes: 13 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: auto-assign
on:
pull_request:
types: [opened, reopened]

jobs:
reviewers:
runs-on: ubuntu-latest
steps:
- uses: cloudposse/actions/github/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/auto-assign.yml'
23 changes: 23 additions & 0 deletions .github/workflows/auto-greet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: auto-greet

on: [pull_request, issues]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |-
Thank you for reporting the issue! If you haven't already [joined our slack community](https://slack.sweetops.com), then we invite you to do so.
This is a great place to get help and ask questions from our AMAZING community.
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
pr-message: |-
Thank you for submitting this PR! If you haven't already [joined our slack community](https://slack.sweetops.com), then we invite you to do so.
We receive an overwhelming number of contributions. By joining our slack, we'll be able to review your PR faster.
[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
11 changes: 11 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: auto-label
on: [pull_request]

jobs:
components:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/auto-label.yml'
43 changes: 43 additions & 0 deletions .github/workflows/auto-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 'auto-readme'

on:
# Open a PR to update README on merge to master (as necessary)
push:
branches:
- master

# Open a PR to update README for all PRs (as necessary)
pull_request:
types: [opened, synchronize, reopened]

# Update README nightly
schedule:
- cron: '0 0 * * *'

jobs:
update:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: readme/update
shell: bash
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_BOT_TOKEN }}"
run: |
make init
make readme/deps
make readme
- name: Create Pull Request
uses: cloudposse/actions/github/[email protected]
with:
labels: automated pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
COMMIT_MESSAGE: Update README.md
PULL_REQUEST_TITLE: Automatic Update of README.md
PULL_REQUEST_BODY: |-
This is an auto-generated PR which updates the `README.md` from the `README.yaml`
using the [`cloudposse/build-harness`](https://github.com/cloudposse/build-harness).
PULL_REQUEST_BRANCH: github-actions/auto-readme
BRANCH_SUFFIX: none
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@

# .tfvars files
*.tfvars

# IDE files
.idea
*.iml

# Build harness files
.build-harness
build-harness
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2019 Cloud Posse, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SHELL := /bin/bash

# List of targets the `readme` target should call before generating the readme
export README_DEPS ?= docs/terraform.md

-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness)

## Lint terraform code
lint:
$(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate
Loading

0 comments on commit d166a5c

Please sign in to comment.