-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: create two buckets one for images, other genral
- Loading branch information
Showing
9 changed files
with
282 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "bucket_domains" { | ||
description = "Domain names of the buckets" | ||
value = [ | ||
for bucket_name, bucket in aws_s3_bucket.buckets : { | ||
name = bucket_name | ||
domain = bucket.website_domain != null ? bucket.website_domain : null | ||
} if bucket.website_domain != null | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
variable "bucket_names" { | ||
type = list(string) | ||
default = [ "ashgw-blog-public-general", "ashgw-blog-public-images"] | ||
} | ||
|
||
|
||
|
||
variable "bucket_owner" { | ||
type = string | ||
|
||
default = "i-own-ashgw-blog-public-content" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.