diff --git a/terraform/aws.tf b/terraform/aws.tf new file mode 100644 index 0000000..e2cc3e7 --- /dev/null +++ b/terraform/aws.tf @@ -0,0 +1,18 @@ +# module "s3_bucket" { +# source = "terraform-aws-modules/s3-bucket/aws" + +# bucket = "cis1912-test" +# acl = "private" + +# control_object_ownership = true +# object_ownership = "ObjectWriter" +# } + +resource "aws_s3_bucket" "example" { + bucket = "cis1912-test-bucket" + + tags = { + Name = "CIS 1912 Test Bucket" + Environment = "Dev" + } +} diff --git a/terraform/modules/aws_account/README.md b/terraform/modules/aws_account/README.md new file mode 100644 index 0000000..e69de29 diff --git a/terraform/modules/aws_account/main.tf b/terraform/modules/aws_account/main.tf new file mode 100644 index 0000000..01766c9 --- /dev/null +++ b/terraform/modules/aws_account/main.tf @@ -0,0 +1,6 @@ +resource "aws_iam_user" "user" { + name = var.pennkey + tags = { + created-by = "terraform" + } +} diff --git a/terraform/modules/aws_account/output.tf b/terraform/modules/aws_account/output.tf new file mode 100644 index 0000000..e69de29 diff --git a/terraform/modules/aws_account/variables.tf b/terraform/modules/aws_account/variables.tf new file mode 100644 index 0000000..094d696 --- /dev/null +++ b/terraform/modules/aws_account/variables.tf @@ -0,0 +1,9 @@ +variable "pennkey" { + type = string + description = "Pennkey of student" +} + +variable "emails" { + type = map(any) + description = "Pennkey to email map" +} diff --git a/terraform/provider.tf b/terraform/provider.tf index ffe19da..12dc8ff 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -1,6 +1,6 @@ -# provider "aws" { -# region = "us-east-1" -# } +provider "aws" { + region = "us-east-1" +} # provider "helm" { # kubernetes {