Skip to content

Instantly share code, notes, and snippets.

FROM nginx
COPY ./index.html /usr/share/nginx/html/index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Docker Nginx</title>
</head>
<body>
<h2>Hello World!</h2>
</body>
</html>
**/.terraform/*
*.tfstate
*.tfstate.*
*.terraform*
resource "aws_instance" "app_server" {
ami = "ami-013a129d325529d4d"
instance_type = "t2.micro"
tags = {
Name = "ExampleAppServerInstance"
}
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
}
}
required_version = ">= 0.14.9"
}
aws_access_key = "<your aws access key>"
aws_secret_key = "<your aws secret key>"
# Local .terraform directories
**/.terraform/*
**/.terraform.*
# .tfstate files
*.tfstate
*.tfstate.*
# Crash log files
crash.log
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
}
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
variable "aws_access_key" {
type = string
sensitive = true
}
variable "aws_secret_key" {
type = string
sensitive = true
}
resource "aws_ecs_cluster" "cluster" {
name = "project-ecs-cluster"
capacity_providers = ["FARGATE_SPOT", "FARGATE"]
default_capacity_provider_strategy {
capacity_provider = "FARGATE_SPOT"
}
setting {