File tree 4 files changed +17
-10
lines changed
aws-exfiltration-protection
aws-workspace-with-firewall
4 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ resource "aws_s3_bucket_ownership_controls" "state" {
21
21
}
22
22
23
23
resource "aws_s3_bucket_acl" "acl" {
24
- bucket = aws_s3_bucket. root_storage_bucket . id
25
- acl = " private"
24
+ bucket = aws_s3_bucket. root_storage_bucket . id
25
+ acl = " private"
26
+ depends_on = [aws_s3_bucket_ownership_controls . state ]
26
27
}
27
28
28
29
resource "aws_s3_bucket_server_side_encryption_configuration" "root_storage_bucket" {
@@ -48,4 +49,4 @@ resource "aws_s3_bucket_policy" "root_bucket_policy" {
48
49
bucket = aws_s3_bucket. root_storage_bucket . id
49
50
policy = data. databricks_aws_bucket_policy . this . json
50
51
depends_on = [aws_s3_bucket_public_access_block . root_storage_bucket ]
51
- }
52
+ }
Original file line number Diff line number Diff line change @@ -5,4 +5,8 @@ output "databricks_host" {
5
5
output "databricks_token" {
6
6
value = databricks_mws_workspaces. this . token [0 ]. token_value
7
7
sensitive = true
8
- }
8
+ }
9
+
10
+ output "workspace_id" {
11
+ value = databricks_mws_workspaces. this . workspace_id
12
+ }
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ resource "aws_s3_bucket_ownership_controls" "state" {
21
21
}
22
22
23
23
resource "aws_s3_bucket_acl" "acl" {
24
- bucket = aws_s3_bucket. root_storage_bucket . id
25
- acl = " private"
24
+ bucket = aws_s3_bucket. root_storage_bucket . id
25
+ acl = " private"
26
+ depends_on = [aws_s3_bucket_ownership_controls . state ]
26
27
}
27
28
28
29
resource "aws_s3_bucket_server_side_encryption_configuration" "root_storage_bucket" {
@@ -47,4 +48,4 @@ resource "aws_s3_bucket_policy" "root_bucket_policy" {
47
48
bucket = aws_s3_bucket. root_storage_bucket . id
48
49
policy = data. databricks_aws_bucket_policy . this . json
49
50
depends_on = [aws_s3_bucket_public_access_block . root_storage_bucket ]
50
- }
51
+ }
Original file line number Diff line number Diff line change 1
1
resource "aws_s3_bucket" "root_storage_bucket" {
2
- bucket = " ${ local . prefix } -rootbucket"
2
+ bucket = " ${ local . prefix } -rootbucket"
3
3
force_destroy = true
4
4
tags = merge (var. tags , {
5
5
Name = " ${ local . prefix } -rootbucket"
@@ -40,11 +40,12 @@ resource "aws_s3_bucket_ownership_controls" "state" {
40
40
resource "aws_s3_bucket_acl" "root_storage_bucket" {
41
41
bucket = aws_s3_bucket. root_storage_bucket . id
42
42
acl = " private"
43
+ depends_on = [aws_s3_bucket_ownership_controls . state ]
43
44
}
44
45
45
46
resource "aws_s3_bucket_versioning" "versioning_example" {
46
- bucket = aws_s3_bucket. root_storage_bucket . id
47
+ bucket = aws_s3_bucket. root_storage_bucket . id
47
48
versioning_configuration {
48
49
status = " Disabled"
49
50
}
50
- }
51
+ }
You can’t perform that action at this time.
0 commit comments