Giter Site home page Giter Site logo

terraform-aws-sentry's Introduction

Terraform Sentry Setup

It will fulfill the requirements of the sentry self-hosted setup on AWS.

Resources Supported

  • AWS EC2 Instance
  • AWS Key Pair

AMI ID

  • Using the latest stable CoreOs Container Linux AMI ID.

Requirements

  • Terraform version >= v0.12.23
  • AWS Provider >= v2.43.0
  • Default VPC
  • Default Public Subnet
  • A Security group allowing connections on 80/443/22 attached to the instance.

Example Usage:

module "sentry_setup" {
  source              = "../modules"
  public_key_material = var.public_key_material
  instance_type       = "t2.large"

  tags = {
    name             = var.name
    project_name     = var.project_name
    environment_name = var.environment_name
    terraform        = var.terraform
  }
}

Inputs

Name Description Type Default Required
instance_type EC2 Instance Type string t2.large yes
public_key_material A public key data. string null yes
tags Region name map null yes

Outputs

Name Description
sentry_instance_dns Public DNS of the instance.
sentry_instance_ip Public IP of the instance.
sentry_instance_id Instance ID.

Future Scope

  • Automatic tls private key creation to use with key_pair argument of the resource or to pass on the key pair resource name which should exist before running terraform apply.
  • Spawn instance in an autoscaling group using launch template and launch config.
  • Generating sentry key from the bootstrap script. Right now, It is hardcoded.
  • Adding the capability to pass subnet groups, It will give modularity to use custom VPC.
  • Creation of security group and attaching it with the instance.
  • Storing Terraform state backend in s3 with DynamoDB locking.
  • Getting the value of sentry initial username and password from the root module.
  • Static test analysis of the code through terratest or tftest.

Note:

  • Kindly change the secret key and the bootstrap username/password. Also, Current details including key mentioned is a "dummy text" and does not assosiate with any service.

License

See the LICENSE file.

terraform-aws-sentry's People

Contributors

ethicalmohit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.