File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
provider "aws" {
2
- region = " us-east -1" # Update this to the Region closest to you
2
+ region = " us-west -1" # Update this to the Region closest to you
3
3
}
4
4
5
5
resource "aws_s3_bucket" "my_bucket" {
6
- bucket = " nextwork-unique-bucket-[your_name]-[random_number] " # Ensure this bucket name is globally unique
6
+ bucket = " nextwork-unique-bucket-joeyacosta-963831 " # Ensure this bucket name is globally unique
7
7
}
8
8
9
9
resource "aws_s3_bucket_public_access_block" "my_bucket_public_access_block" {
@@ -14,3 +14,8 @@ resource "aws_s3_bucket_public_access_block" "my_bucket_public_access_block" {
14
14
block_public_policy = true
15
15
restrict_public_buckets = true
16
16
}
17
+
18
+ # Access the bucket's domain name (useful for website hosting or DNS)
19
+ output "bucket_domain_name" {
20
+ value = aws_s3_bucket. my_bucket . bucket_domain_name
21
+ }
You can’t perform that action at this time.
0 commit comments