This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx | |
| COPY ./index.html /usr/share/nginx/html/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Docker Nginx</title> | |
| </head> | |
| <body> | |
| <h2>Hello World!</h2> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **/.terraform/* | |
| *.tfstate | |
| *.tfstate.* | |
| *.terraform* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_instance" "app_server" { | |
| ami = "ami-013a129d325529d4d" | |
| instance_type = "t2.micro" | |
| tags = { | |
| Name = "ExampleAppServerInstance" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.27" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws_access_key = "<your aws access key>" | |
| aws_secret_key = "<your aws secret key>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Local .terraform directories | |
| **/.terraform/* | |
| **/.terraform.* | |
| # .tfstate files | |
| *.tfstate | |
| *.tfstate.* | |
| # Crash log files | |
| crash.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| terraform { | |
| required_providers { | |
| docker = { | |
| source = "kreuzwerker/docker" | |
| } | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.0" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variable "aws_access_key" { | |
| type = string | |
| sensitive = true | |
| } | |
| variable "aws_secret_key" { | |
| type = string | |
| sensitive = true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_ecs_cluster" "cluster" { | |
| name = "project-ecs-cluster" | |
| capacity_providers = ["FARGATE_SPOT", "FARGATE"] | |
| default_capacity_provider_strategy { | |
| capacity_provider = "FARGATE_SPOT" | |
| } | |
| setting { |
NewerOlder