-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded module to support Terraform 0.12
- Loading branch information
Showing
4 changed files
with
38 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
output "s3_bucket_id" { | ||
value = "${aws_s3_bucket.default.id}" | ||
value = aws_s3_bucket.default.id | ||
description = "The name of the bucket." | ||
} | ||
|
||
output "s3_bucket_arn" { | ||
value = "${aws_s3_bucket.default.arn}" | ||
value = aws_s3_bucket.default.arn | ||
description = "The ARN of the bucket. Will be of format arn:aws:s3:::bucketname." | ||
} | ||
|
||
output "s3_bucket_domain_name" { | ||
value = "${aws_s3_bucket.default.bucket_domain_name}" | ||
value = aws_s3_bucket.default.bucket_domain_name | ||
description = "The bucket domain name. Will be of format bucketname.s3.amazonaws.com." | ||
} | ||
|
||
output "s3_bucket_hosted_zone_id" { | ||
value = "${aws_s3_bucket.default.hosted_zone_id}" | ||
value = aws_s3_bucket.default.hosted_zone_id | ||
description = "The Route 53 Hosted Zone ID for this bucket's region." | ||
} | ||
|
||
output "s3_bucket_region" { | ||
value = "${aws_s3_bucket.default.region}" | ||
value = aws_s3_bucket.default.region | ||
description = "The AWS region this bucket resides in." | ||
} |
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 |
---|---|---|
@@ -1,75 +1,75 @@ | ||
variable "name" { | ||
type = "string" | ||
type = string | ||
description = "The name of the bucket, which must comply with DNS naming conventions." | ||
} | ||
|
||
variable "logging_target_bucket" { | ||
type = "string" | ||
type = string | ||
description = "The name of the bucket that will receive the log objects." | ||
} | ||
|
||
variable "versioning_enabled" { | ||
default = true | ||
type = "string" | ||
type = string | ||
description = "Enable versioning. Versioning is a means of keeping multiple variants of an object in the same bucket." | ||
} | ||
|
||
variable "lifecycle_rule_enabled" { | ||
default = true | ||
type = "string" | ||
type = string | ||
description = "Specifies lifecycle rule status." | ||
} | ||
|
||
variable "lifecycle_rule_prefix" { | ||
default = "" | ||
type = "string" | ||
type = string | ||
description = "Object key prefix identifying one or more objects to which the rule applies." | ||
} | ||
|
||
variable "standard_ia_transition_days" { | ||
default = "30" | ||
type = "string" | ||
type = string | ||
description = "Specifies a period in the object's STANDARD_IA transitions." | ||
} | ||
|
||
variable "glacier_transition_days" { | ||
default = "60" | ||
type = "string" | ||
type = string | ||
description = "Specifies a period in the object's Glacier transitions." | ||
} | ||
|
||
variable "expiration_days" { | ||
default = "90" | ||
type = "string" | ||
type = string | ||
description = "Specifies a period in the object's expire." | ||
} | ||
|
||
variable "glacier_noncurrent_version_transition_days" { | ||
default = "30" | ||
type = "string" | ||
type = string | ||
description = "Specifies when noncurrent object versions transitions." | ||
} | ||
|
||
variable "noncurrent_version_expiration_days" { | ||
default = "60" | ||
type = "string" | ||
type = string | ||
description = "Specifies when noncurrent object versions expire." | ||
} | ||
|
||
variable "force_destroy" { | ||
default = false | ||
type = "string" | ||
type = string | ||
description = "A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error." | ||
} | ||
|
||
variable "tags" { | ||
type = "map" | ||
type = map(string) | ||
default = {} | ||
description = "A mapping of tags to assign to the bucket." | ||
} | ||
|
||
variable "region" { | ||
type = "string" | ||
type = string | ||
description = "(Optional) If specified, the AWS region this bucket should reside in. Otherwise, the region used by the callee." | ||
default = "" | ||
} |
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,3 @@ | ||
terraform { | ||
required_version = ">= 0.12" | ||
} |