Skip to content

Instantly share code, notes, and snippets.

View arun9theja's full-sized avatar
:octocat:
arun9theja

arun9theja arun9theja

:octocat:
arun9theja
View GitHub Profile
@arun9theja
arun9theja / instance.tf
Created March 11, 2024 19:10 — forked from DuranIsrael/instance.tf
Terraform EC2 Module
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
@arun9theja
arun9theja / main.tf
Created March 11, 2024 19:07 — forked from DuranIsrael/main.tf
Terraform EC2 Modul Parent
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
resource "aws_ecs_cluster" "cluster" {
name = "project-ecs-cluster"
capacity_providers = ["FARGATE_SPOT", "FARGATE"]
default_capacity_provider_strategy {
capacity_provider = "FARGATE_SPOT"
}
setting {
variable "aws_access_key" {
type = string
sensitive = true
}
variable "aws_secret_key" {
type = string
sensitive = true
}
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
}
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
# Local .terraform directories
**/.terraform/*
**/.terraform.*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
FROM nginx
COPY ./index.html /usr/share/nginx/html/index.html
**/.terraform/*
*.tfstate
*.tfstate.*
*.terraform*
@arun9theja
arun9theja / ec2.tf
Created March 11, 2024 18:51 — forked from jaabanks/ec2.tf
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}