refactor: remove useless terraform files

main
sundowndev 2021-09-27 10:27:17 +02:00
parent 43c4481588
commit 5be274e7af
3 changed files with 0 additions and 188 deletions

View File

@ -1,20 +0,0 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/aws" {
version = "3.19.0"
constraints = "3.19.0"
hashes = [
"h1:+7Vi7p13+cnrxjXbfJiTimGSFR97xCaQwkkvWcreLns=",
"zh:185a5259153eb9ee4699d4be43b3d509386b473683392034319beee97d470c3b",
"zh:2d9a0a01f93e8d16539d835c02b8b6e1927b7685f4076e96cb07f7dd6944bc6c",
"zh:703f6da36b1b5f3497baa38fccaa7765fb8a2b6440344e4c97172516b49437dd",
"zh:770855565462abadbbddd98cb357d2f1a8f30f68a358cb37cbd5c072cb15b377",
"zh:8008db43149fe4345301f81e15e6d9ddb47aa5e7a31648f9b290af96ad86e92a",
"zh:8cdd27d375da6dcb7687f1fed126b7c04efce1671066802ee876dbbc9c66ec79",
"zh:be22ae185005690d1a017c1b909e0d80ab567e239b4f06ecacdba85080667c1c",
"zh:d2d02e72dbd80f607636cd6237a6c862897caabc635c7b50c0cb243d11246723",
"zh:d8f125b66a1eda2555c0f9bbdf12036a5f8d073499a22ca9e4812b68067fea31",
"zh:f5a98024c64d5d2973ff15b093725a074c0cb4afde07ef32c542e69f17ac90bc",
]
}

View File

@ -1,61 +0,0 @@
provider "aws" {
region = "us-east-1"
}
terraform {
required_providers {
aws = "3.19.0"
}
}
resource "aws_dynamodb_table" "basic-dynamodb-table" {
name = "GameScores"
billing_mode = "PROVISIONED"
read_capacity = 20
write_capacity = 20
hash_key = "UserId"
range_key = "GameTitle"
attribute {
name = "UserId"
type = "S"
}
attribute {
name = "GameTitle"
type = "S"
}
attribute {
name = "TopScore"
type = "N"
}
ttl {
attribute_name = "TimeToExist"
enabled = false
}
global_secondary_index {
name = "GameTitleIndex"
hash_key = "GameTitle"
range_key = "TopScore"
write_capacity = 10
read_capacity = 10
projection_type = "INCLUDE"
non_key_attributes = ["UserId"]
}
tags = {
Name = "dynamodb-table-1"
Environment = "production"
}
}
resource "aws_appautoscaling_target" "dynamodb_table_read_target" {
max_capacity = 100
min_capacity = 5
resource_id = "table/${aws_dynamodb_table.basic-dynamodb-table.name}"
scalable_dimension = "dynamodb:table:ReadCapacityUnits"
service_namespace = "dynamodb"
}

View File

@ -1,107 +0,0 @@
{
"version": 4,
"terraform_version": "0.15.5",
"serial": 4,
"lineage": "4e23bef8-c3c8-c6ff-1624-03104ee3b7a2",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "aws_appautoscaling_target",
"name": "dynamodb_table_read_target",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "table/GameScores",
"max_capacity": 100,
"min_capacity": 5,
"resource_id": "table/GameScores",
"role_arn": "arn:aws:iam::533948124879:role/aws-service-role/dynamodb.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_DynamoDBTable",
"scalable_dimension": "dynamodb:table:ReadCapacityUnits",
"service_namespace": "dynamodb"
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"aws_dynamodb_table.basic-dynamodb-table"
]
}
]
},
{
"mode": "managed",
"type": "aws_dynamodb_table",
"name": "basic-dynamodb-table",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"arn": "arn:aws:dynamodb:us-east-1:533948124879:table/GameScores",
"attribute": [
{
"name": "GameTitle",
"type": "S"
},
{
"name": "TopScore",
"type": "N"
},
{
"name": "UserId",
"type": "S"
}
],
"billing_mode": "PROVISIONED",
"global_secondary_index": [
{
"hash_key": "GameTitle",
"name": "GameTitleIndex",
"non_key_attributes": [
"UserId"
],
"projection_type": "INCLUDE",
"range_key": "TopScore",
"read_capacity": 10,
"write_capacity": 10
}
],
"hash_key": "UserId",
"id": "GameScores",
"local_secondary_index": [],
"name": "GameScores",
"point_in_time_recovery": [
{
"enabled": false
}
],
"range_key": "GameTitle",
"read_capacity": 20,
"replica": [],
"server_side_encryption": [],
"stream_arn": "",
"stream_enabled": false,
"stream_label": "",
"stream_view_type": "",
"tags": {
"Environment": "production",
"Name": "dynamodb-table-1"
},
"timeouts": null,
"ttl": [
{
"attribute_name": "",
"enabled": false
}
],
"write_capacity": 20
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJ1cGRhdGUiOjM2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ=="
}
]
}
]
}