Skip to content

Commit

Permalink
Add new output
Browse files Browse the repository at this point in the history
  • Loading branch information
jnonino committed May 26, 2022
1 parent 558e237 commit 7323ec1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_lb_logs_s3_bucket_arn"></a> [lb\_logs\_s3\_bucket\_arn](#output\_lb\_logs\_s3\_bucket\_arn) | LB Logging S3 Bucket ARN |
| <a name="output_lb_logs_s3_bucket_id"></a> [lb\_logs\_s3\_bucket\_id](#output\_lb\_logs\_s3\_bucket\_id) | LB Logging S3 Bucket ID |
| <a name="output_s3_bucket_arn"></a> [s3\_bucket\_arn](#output\_s3\_bucket\_arn) | Logging S3 Bucket ARN |
| <a name="output_s3_bucket_domain_name"></a> [s3\_bucket\_domain\_name](#output\_s3\_bucket\_domain\_name) | Logging S3 Bucket Domain Name |
| <a name="output_s3_bucket_id"></a> [s3\_bucket\_id](#output\_s3\_bucket\_id) | Logging S3 Bucket ID |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13 changes: 9 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#------------------------------------------------------------------------------
# S3 Bucket
#------------------------------------------------------------------------------
output "lb_logs_s3_bucket_id" {
description = "LB Logging S3 Bucket ID"
output "s3_bucket_id" {
description = "Logging S3 Bucket ID"
value = aws_s3_bucket.logs.id
}

output "lb_logs_s3_bucket_arn" {
description = "LB Logging S3 Bucket ARN"
output "s3_bucket_arn" {
description = "Logging S3 Bucket ARN"
value = aws_s3_bucket.logs.arn
}

output "s3_bucket_domain_name" {
description = "Logging S3 Bucket Domain Name"
value = aws_s3_bucket.logs.bucket_domain_name
}

2 comments on commit 7323ec1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’° Infracost estimate: monthly cost will not change

Project Previous New Diff
cn-terraform/terraform-aws-logs-s3-bucket $0 $0 $0
Infracost output
Project: cn-terraform/terraform-aws-logs-s3-bucket

+ module.logs_bucket.aws_s3_bucket.logs
  Monthly cost depends on usage

    + Standard
    
        + Storage
          Monthly cost depends on usage
            +$0.023 per GB
    
        + PUT, COPY, POST, LIST requests
          Monthly cost depends on usage
            +$0.005 per 1k requests
    
        + GET, SELECT, and all other requests
          Monthly cost depends on usage
            +$0.0004 per 1k requests
    
        + Select data scanned
          Monthly cost depends on usage
            +$0.002 per GB
    
        + Select data returned
          Monthly cost depends on usage
            +$0.0007 per GB

Monthly cost change for cn-terraform/terraform-aws-logs-s3-bucket
Amount:  $0.00 ($0.00 β†’ $0.00)

──────────────────────────────────
Key: ~ changed, + added, - removed

5 cloud resources were detected:
βˆ™ 1 was estimated, it includes usage-based costs, see https://infracost.io/usage-file
βˆ™ 3 were free, rerun with --show-skipped to see details
βˆ™ 1 is not supported yet, rerun with --show-skipped to see details
Is this comment useful? Yes, No

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’° Infracost estimate: monthly cost will not change

Project Previous New Diff
cn-terraform/terraform-aws-logs-s3-bucket $0 $0 $0
Infracost output
Project: cn-terraform/terraform-aws-logs-s3-bucket

+ module.logs_bucket.aws_s3_bucket.logs
  Monthly cost depends on usage

    + Standard
    
        + Storage
          Monthly cost depends on usage
            +$0.023 per GB
    
        + PUT, COPY, POST, LIST requests
          Monthly cost depends on usage
            +$0.005 per 1k requests
    
        + GET, SELECT, and all other requests
          Monthly cost depends on usage
            +$0.0004 per 1k requests
    
        + Select data scanned
          Monthly cost depends on usage
            +$0.002 per GB
    
        + Select data returned
          Monthly cost depends on usage
            +$0.0007 per GB

Monthly cost change for cn-terraform/terraform-aws-logs-s3-bucket
Amount:  $0.00 ($0.00 β†’ $0.00)

──────────────────────────────────
Key: ~ changed, + added, - removed

5 cloud resources were detected:
βˆ™ 1 was estimated, it includes usage-based costs, see https://infracost.io/usage-file
βˆ™ 3 were free, rerun with --show-skipped to see details
βˆ™ 1 is not supported yet, rerun with --show-skipped to see details
Is this comment useful? Yes, No

Please sign in to comment.