Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rene/test #81

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<p align="center">
✨ <a href="https://terramate.io/docs/cli">https://terramate.io</a> ✨
<br/>
Terramate an Infrastructure as Code (IaC) orchestration, collaboration, visibility and observability platform that <strong>unifies</strong>,
<strong>simplifies</strong>, and <strong>scales</strong> all your infrastructure code, tools, and workflows.
</p>
</p>
<br/>
Expand All @@ -17,15 +15,18 @@
<a href="https://terramate.io/discord" rel="nofollow"><img src="https://img.shields.io/discord/1088753599951151154?label=Discord&logo=discord&logoColor=white" alt="Discord Server"></a>
</p>
<p align="center">
<a href="https://terramate.io/docs">📖 Documentation</a> | <a href="https://terramate.io/docs/cli/getting-started">🚀 Getting Started</a> | <a href="https://play.terramate.io">💻 Playground</a> | <a href="https://jobs.ashbyhq.com/terramate" title="Terramate Job Board">🙌 Join Us</a>
<a href="https://terramate.io/docs">📖 Terramate Documentation</a> | <a href="https://terramate.io/docs/cli/getting-started">🚀 Getting Started</a> | <a href="https://play.terramate.io">💻 Playground</a> | <a href="https://jobs.ashbyhq.com/terramate" title="Terramate Job Board">🙌 Join Us</a>
</p>

<br>
<br>

## Introduction

This template repository provides a pre-configured Terramate project to get started with Terramate and Terraform on AWS using best practices.
This template repository provides a pre-configured Terramate project to get started with Terramate and Terraform on AWS
using best practices. It also comes with pre-configured GitOps workflows that run natively in GitHub Actions so that you
can automate your Terraform in Pull Requests without requiring any additional tooling or infrastructure using the
Terramate orchestration and change detection.

### Features

Expand Down Expand Up @@ -57,7 +58,19 @@ Terraform Remote State Storage and State Locking with AWS S3 and DynamoDB

Pushes data to Terramate Cloud to enable observability, asset management, drift management and Slack notifications.

#### Coming Soon
#### How do you use this repository?

##### Pre-requisites

- Install asds
- Install asdf plugins `asdf add <plugin>`
- Install asdf dependencies `asdf install`
- Install pre-commit hooks `pre-commit install`

- You need an AWS account (Configure your AWS credentials using one of the supported [authentication mechanisms](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication).
)

#### To Do

- Policies with OPA and/or Sentinel
- Implement checkov, trivy, terrascan
Expand Down
11 changes: 11 additions & 0 deletions stacks/s3/demo-bucket/_backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT

terraform {
backend "s3" {
bucket = "terramate-example-terraform-state-backend"
dynamodb_table = "terraform-lock"
encrypt = true
key = "terraform/stacks/by-id/0f87305d-e6d4-4087-8128-b33a6e80a8e8/terraform.tfstate"
region = "us-east-1"
}
}
16 changes: 16 additions & 0 deletions stacks/s3/demo-bucket/_terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT

terraform {
required_version = "1.7.1"
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.31"
}
}
}
provider "aws" {
region = "us-east-1"
}
4 changes: 4 additions & 0 deletions stacks/s3/demo-bucket/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "aws_s3_bucket" "demo_bucket" {
bucket = "terramate-s3-demo"
acl = "private"
}
5 changes: 5 additions & 0 deletions stacks/s3/demo-bucket/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stack {
name = "demo-bucket"
description = "demo-bucket"
id = "0f87305d-e6d4-4087-8128-b33a6e80a8e8"
}
Loading