Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ forums/migrations
.vscode
.env
.python-version

# infra creds
infra/credentials
infra/.terraform/*
25 changes: 25 additions & 0 deletions infra/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions infra/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://aws.amazon.com/getting-started/hands-on/deploy-docker-containers/

30 changes: 30 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.48.0"
}
}

required_version = ">= 1.3.6"
}

provider "aws" {
region = "us-east-1"
shared_credentials_files = ["./credentials"]
profile = "minictf"
default_tags {
tags = {
Service = "minictf"
}
}
}

resource "aws_ecr_repository" "minictf_ecr" {
name = "minictf"
image_tag_mutability = "MUTABLE"
tags = {
Name = "minictf-ecr"
}
}

51 changes: 51 additions & 0 deletions infra/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"version": 4,
"terraform_version": "1.3.6",
"serial": 11,
"lineage": "9c8c0fd2-3972-3452-d36a-3de87f12af8c",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "aws_ecr_repository",
"name": "minictf_ecr",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"arn": "arn:aws:ecr:us-east-1:479426508990:repository/minictf",
"encryption_configuration": [
{
"encryption_type": "AES256",
"kms_key": ""
}
],
"force_delete": null,
"id": "minictf",
"image_scanning_configuration": [
{
"scan_on_push": false
}
],
"image_tag_mutability": "MUTABLE",
"name": "minictf",
"registry_id": "479426508990",
"repository_url": "479426508990.dkr.ecr.us-east-1.amazonaws.com/minictf",
"tags": {
"Name": "minictf-ecr"
},
"tags_all": {
"Name": "minictf-ecr",
"Service": "minictf"
},
"timeouts": null
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjoxMjAwMDAwMDAwMDAwfX0="
}
]
}
],
"check_results": null
}
9 changes: 9 additions & 0 deletions infra/terraform.tfstate.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 4,
"terraform_version": "1.3.6",
"serial": 9,
"lineage": "9c8c0fd2-3972-3452-d36a-3de87f12af8c",
"outputs": {},
"resources": [],
"check_results": null
}