diff --git a/main.tf b/main.tf index ed8d67e..a4ce110 100644 --- a/main.tf +++ b/main.tf @@ -1,11 +1,23 @@ -provider "aws" { - access_key = "${var.aws_access_key}" - secret_key = "${var.aws_secret_key}" - region = "${var.region}" -} - -module "s3" { - source = "" - #bucket name should be unique - bucket_name = "" -} +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 3.27" + } + } + + required_version = ">= 0.14.9" +} + +provider "aws" { + profile = "default" + region = "us-east-2" +} +resource "aws_db_instance" "default" { + allocated_storage = 10 + engine = "mysql" + instance_class = "db.t3.micro" + username = "foo" + password = "foobarbaz" + skip_final_snapshot = true // required to destroy +} \ No newline at end of file