Code Monkey home page Code Monkey logo

saw-naaz / aws-billing-alert-terraform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notharshhaa/aws-billing-alert-terraform

0.0 0.0 1.0 4 KB

๐“๐ก๐ข๐ฌ ๐ซ๐ž๐ฉ๐จ๐ฌ๐ข๐ญ๐จ๐ซ๐ฒ ๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ฌ ๐š ๐“๐ž๐ซ๐ซ๐š๐Ÿ๐จ๐ซ๐ฆ ๐ฆ๐จ๐๐ฎ๐ฅ๐ž ๐ญ๐ก๐š๐ญ ๐ก๐ž๐ฅ๐ฉ๐ฌ ๐ฌ๐ž๐ญ ๐ฎ๐ฉ ๐€๐–๐’ ๐›๐ข๐ฅ๐ฅ๐ข๐ง๐  ๐š๐ฅ๐ž๐ซ๐ญ๐ฌ

HCL 100.00%

aws-billing-alert-terraform's Introduction

AWS Billing Alert Terraform Module

AWS-billing

This repository contains a Terraform module that helps set up AWS billing alerts. Once configured, it will notify users when AWS charges exceed the specified amounts.

Prerequisites

  • Terraform installed on your local machine.
  • An AWS account.
  • AWS CLI configured with necessary credentials.

Understanding the AWS Services

AWS CloudWatch

AWS CloudWatch is a monitoring and observability service. With CloudWatch, you can collect and access all your performance and operational data in form of logs and metrics from a single platform. This module uses CloudWatch to monitor your AWS billing and trigger an alarm when the specified thresholds are crossed.

AWS SNS (Simple Notification Service)

AWS SNS is a fully managed notification service. It allows you to send individual messages or to fan-out messages to large numbers of recipients. In the context of this module, SNS is used to send out notifications when the billing alarm in CloudWatch is triggered.

AWS Billing

AWS Billing provides you with tools and features to pay for what you use, manage your costs, and budget your AWS costs. AWS charges can accumulate quickly depending on the services and the usage, hence monitoring the billing is crucial. This module helps in automating the monitoring process and alerts you before your bill goes beyond your expectations.

Setup

  1. Clone the Repository

    Clone Repository

You can clone this repository to your local machine using the following steps:

  1. Open your terminal or command prompt.

  2. Navigate to the directory where you want to clone the repository:

    cd /path/to/your/directory
    
  • Replace /path/to/your/directory with the actual path to your desired directory.

  • Clone the repository by running the following command:

git clone https://github.com/NotHarshhaa/aws-billing-alert-terraform.git

This will create a copy of the repository on your local machine.

Change your working directory to the cloned repository:

cd aws-billing-alert-terraform

Now you have successfully cloned the repository to your local machine and can start working with it.

Note: Ensure that you have Git installed on your machine before running the git clone command.

  • Replace /path/to/your/directory

Terraform Installation Guide for Amazon Linux

This guide will walk you through the installation of Terraform on an Amazon Linux system using yum. Terraform is an infrastructure as code tool that allows you to define and provision infrastructure resources in a declarative configuration file.

Prerequisites

Before you begin, make sure you have the following prerequisites:

  • An Amazon Linux system.
  • sudo or root access to your server.

Installation Steps

Follow these steps to install Terraform on your Amazon Linux system:

# Install necessary packages
sudo yum install -y yum-utils shadow-utils

# Add HashiCorp repository for Amazon Linux
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo

# Install Terraform
sudo yum -y install terraform

After the installation is complete, you can verify the installation by checking the Terraform version:

terraform --version

  1. Initialize Terraform

    Navigate to the directory where you've cloned the repository and run:

terraform init
  1. Apply the Terraform Configuration

After initializing, apply the Terraform configuration:

terraform apply 

Review the plan, and if everything looks good, proceed by typing yes.

Usage

Modify the Terraform configuration as needed to fit your requirements. By default, alerts are set at $100 and $120, but you can adjust these values in the main Terraform file.

Feedback and Contributions

Feedback, bug reports, and pull requests are welcomed. Feel free to raise an issue or submit a pull request.

Hit the Star! โญ

If you are planning to use this repo for learning, please hit the star. Thanks!

Author by Harshhaa Reddy

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.