Skip to content

Commit

Permalink
add s3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
esinx committed Sep 10, 2024
1 parent 7e5ff11 commit 8611caa
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 3 deletions.
18 changes: 18 additions & 0 deletions terraform/aws.tf
Original file line number Diff line number Diff line change
@@ -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"
}
}
Empty file.
6 changes: 6 additions & 0 deletions terraform/modules/aws_account/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "aws_iam_user" "user" {
name = var.pennkey
tags = {
created-by = "terraform"
}
}
Empty file.
9 changes: 9 additions & 0 deletions terraform/modules/aws_account/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
variable "pennkey" {
type = string
description = "Pennkey of student"
}

variable "emails" {
type = map(any)
description = "Pennkey to email map"
}
6 changes: 3 additions & 3 deletions terraform/provider.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# provider "aws" {
# region = "us-east-1"
# }
provider "aws" {
region = "us-east-1"
}

# provider "helm" {
# kubernetes {
Expand Down

0 comments on commit 8611caa

Please sign in to comment.