From 3c825024795d0e03cb0bafad3fbe2a418c88f2e2 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Tue, 31 Jan 2023 01:08:47 +0000 Subject: [PATCH] aws infra --- tform/blog/.gitignore | 2 ++ tform/blog/.terraform.lock.hcl | 24 ++++++++++++++++++++++++ tform/blog/main.tf | 9 +++++++++ tform/blog/providers.tf | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 tform/blog/.gitignore create mode 100644 tform/blog/.terraform.lock.hcl create mode 100644 tform/blog/main.tf create mode 100644 tform/blog/providers.tf diff --git a/tform/blog/.gitignore b/tform/blog/.gitignore new file mode 100644 index 0000000..a08f4f6 --- /dev/null +++ b/tform/blog/.gitignore @@ -0,0 +1,2 @@ +*.tfvars +.terraform/* diff --git a/tform/blog/.terraform.lock.hcl b/tform/blog/.terraform.lock.hcl new file mode 100644 index 0000000..626622d --- /dev/null +++ b/tform/blog/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "4.52.0" + hashes = [ + "h1:Ofm8syFCBU8MFOiU+zg+vnTWkSdozpmvaA9xukNvcBg=", + "zh:00c865de3a0e7643f4e2e5c8d4ba91eee94a46d41090eb134baca6b58c107172", + "zh:1430682e26eba25d8ace19fa780361187f474153e455545235b4fe30637fdcc2", + "zh:1b9a4e5c889bd2022bd59fb924dc78e189f1b7a4fd718fcacda0f0a4cb74d6eb", + "zh:2485260141608f1d386d0f68934092bbf68a27d96f0d83c73222d0382aee02f5", + "zh:2fe67ee94e2df7dabee7e474356f8e907e7c8011533f9d71df8702d59f9060b2", + "zh:37babd1b7ff96ff1f42aa56d7575cacabda6f9f460ff651d70662bfd90076341", + "zh:54aa8d39f22ecab6613169f49d37d2ccfaf417e59dd7a8c8fc6bf92600c3384f", + "zh:5bf4a84b962a8d2da8f4ccf2a7de56fb6c7a1f566e8393b563977fc7872a8740", + "zh:8cb4a51f209a3cc497e53f09188c15c6675697587fe2ea14a6c7fff10c8c8476", + "zh:91f6bdcbb1e36471140982e9048b7ced437d3290b2cc21079e5429cc84fed2fd", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:9f8c01c3f677bc64ddefa41e59c6fc98860c11875d7f148af55969d3e3847f77", + "zh:b6b4fc0bd6f3c0adcd9531da3ccf8c25787ccd6ccc568f13ebbff1336d71a9e1", + "zh:d52a428bd92cc319088685ecac63b9f7d12d4cd6725604edb20d0c4f37a9936e", + "zh:e20252a851a0d38548a3c01a006bfc59ee1fc84217bf9eb95b22724769601b2b", + ] +} diff --git a/tform/blog/main.tf b/tform/blog/main.tf new file mode 100644 index 0000000..2abbd0e --- /dev/null +++ b/tform/blog/main.tf @@ -0,0 +1,9 @@ +resource "aws_s3_bucket" "blog" { + bucket = "ndumas-blog" +} + + +resource "aws_s3_bucket_acl" "example" { + bucket = aws_s3_bucket.blog.id + acl = "public-read" +} diff --git a/tform/blog/providers.tf b/tform/blog/providers.tf new file mode 100644 index 0000000..1ffbfa9 --- /dev/null +++ b/tform/blog/providers.tf @@ -0,0 +1,4 @@ +provider "aws" { + region = "us-east-1" + profile= "terraform" +}