-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatch-iac
More file actions
33 lines (31 loc) · 853 Bytes
/
patch-iac
File metadata and controls
33 lines (31 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/main.tf b/main.tf
index fc17221..95fd6ae 100644
--- a/main.tf
+++ b/main.tf
@@ -13,6 +13,21 @@ resource "aws_s3_bucket" "data" {
}
}
+resource "aws_s3_bucket" "data2" {
+ # bucket is public
+ # bucket is not encrypted
+ # bucket does not have access logs
+ # bucket does not have versioning
+ bucket = "${local.resource_prefix.value}-data"
+ region = "us-west-2"
+ acl = "public-read"
+ force_destroy = true
+ tags = {
+ Name = "${local.resource_prefix.value}-data"
+ Environment = local.resource_prefix.value
+ }
+}
+
resource "aws_s3_bucket_object" "data_object" {
bucket = aws_s3_bucket.data.id
region = "us-west-2"
diff --git a/mongo.js b/mongo.js
index bd231d8..5c24f9a 100644
--- a/mongo.js
+++ b/mongo.js
console.log('secret!', apiKey);
\ No newline at end of file