-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creation of Cirrus Data and Payload S3 bucket if none is defined via …
…inputs (#82)
- Loading branch information
1 parent
f8de9ac
commit 9186505
Showing
6 changed files
with
22 additions
and
8 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
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
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,13 @@ | ||
resource "aws_s3_bucket" "cirrus_data_bucket" { | ||
count = var.cirrus_data_bucket == "" ? 1 : 0 | ||
|
||
bucket_prefix = var.cirrus_data_bucket == "" ? "${var.cirrus_prefix}-data-" : var.cirrus_data_bucket | ||
force_destroy = true | ||
} | ||
|
||
resource "aws_s3_bucket" "cirrus_payload_bucket" { | ||
count = var.cirrus_payload_bucket == "" ? 1 : 0 | ||
|
||
bucket_prefix = var.cirrus_payload_bucket == "" ? "${var.cirrus_prefix}-payload-" : var.cirrus_payload_bucket | ||
force_destroy = true | ||
} |
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