-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use labels module and standard tagging. Test cases reworked…
… into examples
- Loading branch information
Steven Nemetz
committed
May 17, 2018
1 parent
be03448
commit 3b1c2ec
Showing
24 changed files
with
272 additions
and
52 deletions.
There are no files selected for viewing
Empty file.
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 @@ | ||
# Example: Disabled by enabled variable |
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,7 @@ | ||
module "s3" { | ||
source = "../../" | ||
names = ["disabled"] | ||
environment = "${var.environment}" | ||
organization = "${var.organization}" | ||
enabled = false | ||
} |
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,29 @@ | ||
output "arns" { | ||
description = "List of AWS S3 Bucket ARNs" | ||
value = "${module.s3.arns}" | ||
} | ||
|
||
output "domain_names" { | ||
description = "List of AWS S3 Bucket Domain Names" | ||
value = "${module.s3.domain_names}" | ||
} | ||
|
||
output "hosted_zone_ids" { | ||
description = "List of AWS S3 Bucket Hosted Zone IDs" | ||
value = "${module.s3.hosted_zone_ids}" | ||
} | ||
|
||
output "ids" { | ||
description = "List of AWS S3 Bucket IDs" | ||
value = "${module.s3.ids}" | ||
} | ||
|
||
output "names" { | ||
description = "List of AWS S3 Bucket Names" | ||
value = "${module.s3.names}" | ||
} | ||
|
||
output "regions" { | ||
description = "List of AWS S3 Bucket Regions" | ||
value = "${module.s3.regions}" | ||
} |
File renamed without changes.
File renamed without changes.
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 @@ | ||
# Example: Managing multiple S3 buckets |
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,6 @@ | ||
module "s3" { | ||
source = "../../" | ||
names = ["bucket-1", "bucket2", "bucket_3"] | ||
environment = "${var.environment}" | ||
organization = "${var.organization}" | ||
} |
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,29 @@ | ||
output "arns" { | ||
description = "List of AWS S3 Bucket ARNs" | ||
value = "${module.s3.arns}" | ||
} | ||
|
||
output "domain_names" { | ||
description = "List of AWS S3 Bucket Domain Names" | ||
value = "${module.s3.domain_names}" | ||
} | ||
|
||
output "hosted_zone_ids" { | ||
description = "List of AWS S3 Bucket Hosted Zone IDs" | ||
value = "${module.s3.hosted_zone_ids}" | ||
} | ||
|
||
output "ids" { | ||
description = "List of AWS S3 Bucket IDs" | ||
value = "${module.s3.ids}" | ||
} | ||
|
||
output "names" { | ||
description = "List of AWS S3 Bucket Names" | ||
value = "${module.s3.names}" | ||
} | ||
|
||
output "regions" { | ||
description = "List of AWS S3 Bucket Regions" | ||
value = "${module.s3.regions}" | ||
} |
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 @@ | ||
provider "aws" { | ||
region = "${var.region}" | ||
} |
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,11 @@ | ||
variable "environment" { | ||
default = "dev" | ||
} | ||
|
||
variable "organization" { | ||
default = "testorg" | ||
} | ||
|
||
variable "region" { | ||
default = "us-west-2" | ||
} |
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 @@ | ||
# Example: Disabled by providing an empty list |
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,6 @@ | ||
module "s3" { | ||
source = "../../" | ||
names = [] | ||
environment = "${var.environment}" | ||
organization = "${var.organization}" | ||
} |
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,29 @@ | ||
output "arns" { | ||
description = "List of AWS S3 Bucket ARNs" | ||
value = "${module.s3.arns}" | ||
} | ||
|
||
output "domain_names" { | ||
description = "List of AWS S3 Bucket Domain Names" | ||
value = "${module.s3.domain_names}" | ||
} | ||
|
||
output "hosted_zone_ids" { | ||
description = "List of AWS S3 Bucket Hosted Zone IDs" | ||
value = "${module.s3.hosted_zone_ids}" | ||
} | ||
|
||
output "ids" { | ||
description = "List of AWS S3 Bucket IDs" | ||
value = "${module.s3.ids}" | ||
} | ||
|
||
output "names" { | ||
description = "List of AWS S3 Bucket Names" | ||
value = "${module.s3.names}" | ||
} | ||
|
||
output "regions" { | ||
description = "List of AWS S3 Bucket Regions" | ||
value = "${module.s3.regions}" | ||
} |
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 @@ | ||
provider "aws" { | ||
region = "${var.region}" | ||
} |
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,11 @@ | ||
variable "environment" { | ||
default = "dev" | ||
} | ||
|
||
variable "organization" { | ||
default = "testorg" | ||
} | ||
|
||
variable "region" { | ||
default = "us-west-2" | ||
} |
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 @@ | ||
# Example: Managing one S3 buckets |
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,6 @@ | ||
module "s3" { | ||
source = "../../" | ||
names = ["bucket"] | ||
environment = "${var.environment}" | ||
organization = "${var.organization}" | ||
} |
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,29 @@ | ||
output "arns" { | ||
description = "List of AWS S3 Bucket ARNs" | ||
value = "${module.s3.arns}" | ||
} | ||
|
||
output "domain_names" { | ||
description = "List of AWS S3 Bucket Domain Names" | ||
value = "${module.s3.domain_names}" | ||
} | ||
|
||
output "hosted_zone_ids" { | ||
description = "List of AWS S3 Bucket Hosted Zone IDs" | ||
value = "${module.s3.hosted_zone_ids}" | ||
} | ||
|
||
output "ids" { | ||
description = "List of AWS S3 Bucket IDs" | ||
value = "${module.s3.ids}" | ||
} | ||
|
||
output "names" { | ||
description = "List of AWS S3 Bucket Names" | ||
value = "${module.s3.names}" | ||
} | ||
|
||
output "regions" { | ||
description = "List of AWS S3 Bucket Regions" | ||
value = "${module.s3.regions}" | ||
} |
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 @@ | ||
provider "aws" { | ||
region = "${var.region}" | ||
} |
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,11 @@ | ||
variable "environment" { | ||
default = "dev" | ||
} | ||
|
||
variable "organization" { | ||
default = "testorg" | ||
} | ||
|
||
variable "region" { | ||
default = "us-west-2" | ||
} |
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 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