Skip to content

Commit

Permalink
feat: Add S3 bucket for app's file storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo authored and vdmgolub committed Oct 16, 2022
1 parent 212df5d commit c5a5a17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infracost-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ resource_usage:
aws_lambda_function.hello_world:
monthly_requests: 100000000 # Monthly requests to the Lambda function.
request_duration_ms: 250 # Try changing this to 100 (milliseconds) to compare costs
aws_s3_bucket.files:
object_tags: 10000000 # Total object tags. Only for AWS provider V3.
standard:
storage_gb: 10000 # Total storage in GB.
monthly_tier_1_requests: 1000000 # Monthly PUT, COPY, POST, LIST requests (Tier 1).
monthly_tier_2_requests: 100000 # Monthly GET, SELECT, and all other requests (Tier 2).
monthly_select_data_scanned_gb: 10000 # Monthly data scanned by S3 Select in GB.
monthly_select_data_returned_gb: 1000 # Monthly data returned by S3 Select in GB.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ resource "aws_lambda_function" "hello_world" {
runtime = "nodejs12.x"
memory_size = 1024 # <<<<< Try changing this to 512 to compare costs
}

resource "aws_s3_bucket" "files" {
bucket = "demo_files"
}

0 comments on commit c5a5a17

Please sign in to comment.