Giter Site home page Giter Site logo

sentry-aws's Introduction

Hint: I used AWS US-EAST-1 as my default region.

Prerequisites

This automation mechanism requires the following components to be already available.

How to use it

Prepare the AMI image with Packer

Generate your personal keys (Pub, Priv) if you don't have it already:

ssh-keygen -t rsa -C "[email protected]" -f ./the-keys

if you have them already place both your keys in the ./packer/ directory and update the file names inside ./packer/image.pkr.hcl

The default region is us-east-1 and IaaS Provider is AWS. If you want another region update them in ./packer/image.pkr.hcl in the region block and ./terraform/variables.tf in the region block.

Execute the following command from inside ./packer/ directory:

packer build image.pkr.hcl

The last line shows the name of new ami ID alongside with its deployment region that can be used for the deployment. Copy it.

Service deployment:

Go to the ami_id variable block of ./terraform/variables.tf and replace your ami ID with the old one.

review ./terraform/variables.tf throughly and update it accordingly, setting the value for Certificate ARN is a must!

then from the directory where main.tf exists execute this command:

terraform init && terraform plan -out=main.plan

if you are happy with what you see then you can execute terraform apply "main.plan" to make the service available.

  • hint: If you want to connect to the server for some reason: ssh theuser@$(terraform output -raw public_ip) -i ./packer/the-keys
  • hint2: In case you get an error stating that you are using two subnets in the same region, destroy the deployment with terraform destroy and again use terraform plan -out=main.plan and apply it

Once the deployment was successful, go to AWS Route53 and create a A record, set its destination as alias then select Alias to Application and Classic Load Balancer fill the form to your deployment region, you should see a new load balancer ID with the name of lb-sentry mentioned in it. select it and create the record.

Once the record is created give it some few seconds and the navigate to your created address using https://.

  • hint: if you don't want to use the service anymore just go to the same directory of ./terraform/ and execute this command: terraform destroy and then type yes

sentry-aws's People

Contributors

r3dw0lf avatar saif-qureos 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.