Skip to content

Commit 3b1c2ec

Browse files
author
Steven Nemetz
committed
Update to use labels module and standard tagging. Test cases reworked into examples
1 parent be03448 commit 3b1c2ec

24 files changed

+272
-52
lines changed

examples/README.md

Whitespace-only changes.

examples/disabled/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example: Disabled by enabled variable

examples/disabled/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module "s3" {
2+
source = "../../"
3+
names = ["disabled"]
4+
environment = "${var.environment}"
5+
organization = "${var.organization}"
6+
enabled = false
7+
}

examples/disabled/outputs.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
output "arns" {
2+
description = "List of AWS S3 Bucket ARNs"
3+
value = "${module.s3.arns}"
4+
}
5+
6+
output "domain_names" {
7+
description = "List of AWS S3 Bucket Domain Names"
8+
value = "${module.s3.domain_names}"
9+
}
10+
11+
output "hosted_zone_ids" {
12+
description = "List of AWS S3 Bucket Hosted Zone IDs"
13+
value = "${module.s3.hosted_zone_ids}"
14+
}
15+
16+
output "ids" {
17+
description = "List of AWS S3 Bucket IDs"
18+
value = "${module.s3.ids}"
19+
}
20+
21+
output "names" {
22+
description = "List of AWS S3 Bucket Names"
23+
value = "${module.s3.names}"
24+
}
25+
26+
output "regions" {
27+
description = "List of AWS S3 Bucket Regions"
28+
value = "${module.s3.regions}"
29+
}
File renamed without changes.
File renamed without changes.

examples/multiple/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example: Managing multiple S3 buckets

examples/multiple/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module "s3" {
2+
source = "../../"
3+
names = ["bucket-1", "bucket2", "bucket_3"]
4+
environment = "${var.environment}"
5+
organization = "${var.organization}"
6+
}

examples/multiple/outputs.tf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
output "arns" {
2+
description = "List of AWS S3 Bucket ARNs"
3+
value = "${module.s3.arns}"
4+
}
5+
6+
output "domain_names" {
7+
description = "List of AWS S3 Bucket Domain Names"
8+
value = "${module.s3.domain_names}"
9+
}
10+
11+
output "hosted_zone_ids" {
12+
description = "List of AWS S3 Bucket Hosted Zone IDs"
13+
value = "${module.s3.hosted_zone_ids}"
14+
}
15+
16+
output "ids" {
17+
description = "List of AWS S3 Bucket IDs"
18+
value = "${module.s3.ids}"
19+
}
20+
21+
output "names" {
22+
description = "List of AWS S3 Bucket Names"
23+
value = "${module.s3.names}"
24+
}
25+
26+
output "regions" {
27+
description = "List of AWS S3 Bucket Regions"
28+
value = "${module.s3.regions}"
29+
}

examples/multiple/provider.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
provider "aws" {
2+
region = "${var.region}"
3+
}

0 commit comments

Comments
 (0)