Skip to content

Commit

Permalink
Update AWS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jnonino committed Feb 13, 2022
1 parent 91ef036 commit f394ce3
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 21 deletions.
40 changes: 40 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ In order to run all checks at any point run the following command:
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4 |

## Providers

Expand All @@ -48,8 +51,8 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_aws_cw_logs"></a> [aws\_cw\_logs](#module\_aws\_cw\_logs) | cn-terraform/cloudwatch-logs/aws | 1.0.8 |
| <a name="module_ecs_fargate"></a> [ecs\_fargate](#module\_ecs\_fargate) | cn-terraform/ecs-fargate/aws | 2.0.28 |
| <a name="module_aws_cw_logs"></a> [aws\_cw\_logs](#module\_aws\_cw\_logs) | cn-terraform/cloudwatch-logs/aws | 1.0.9 |
| <a name="module_ecs_fargate"></a> [ecs\_fargate](#module\_ecs\_fargate) | cn-terraform/ecs-fargate/aws | 2.0.29 |

## Resources

Expand Down
28 changes: 14 additions & 14 deletions examples/test/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion examples/test/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module "base-network" {
source = "cn-terraform/networking/aws"
version = "2.0.13"
name_prefix = "test-networking"
vpc_cidr_block = "192.168.0.0/16"
availability_zones = ["us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d"]
Expand Down
4 changes: 2 additions & 2 deletions examples/test/mock_provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.74.1"
version = ">= 4"
}
}
}
Expand All @@ -13,7 +13,7 @@ provider "aws" {
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
s3_use_path_style = true
access_key = "mock_access_key"
secret_key = "mock_secret_key"
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.74.1"
version = ">= 4"
}
}
}

2 comments on commit f394ce3

@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 increase by $163 πŸ“ˆ

Project Previous New Diff
cn-terraform/terraform-aws-nexus/examples/test $0 $163 +$163
Infracost output
Project: cn-terraform/terraform-aws-nexus/examples/test

+ module.base-network.aws_eip.nat_eip[0]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[1]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[2]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[3]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_nat_gateway.nat_gw[0]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[1]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[2]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[3]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.nexus.module.aws_cw_logs.aws_cloudwatch_log_group.log_group
  Monthly cost depends on usage

    + Data ingested
      Monthly cost depends on usage
        +$0.50 per GB

    + Archival Storage
      Monthly cost depends on usage
        +$0.03 per GB

    + Insights queries data scanned
      Monthly cost depends on usage
        +$0.005 per GB

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.aws_ecs_service.service
  $0.00

    + Per GB per hour
      $0.00

    + Per vCPU per hour
      $0.00

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.aws_lb.lb
  +$16.43

    + Application load balancer
      +$16.43

    + Load balancer capacity units
      Monthly cost depends on usage
        +$5.84 per LCU

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.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

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_low
  +$0.10

    + Standard resolution
      +$0.10

Monthly cost change for cn-terraform/terraform-aws-nexus/examples/test
Amount:  +$163 ($0.00 β†’ $163)

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

65 cloud resources were detected, rerun with --show-skipped to see details:
βˆ™ 14 were estimated, 7 include usage-based costs, see https://infracost.io/usage-file
βˆ™ 4 weren't estimated, report them in https://github.com/infracost/infracost
βˆ™ 47 were free

Add cost estimates to your pull requests: https://infracost.io/cicd
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 increase by $163 πŸ“ˆ

Project Previous New Diff
cn-terraform/terraform-aws-nexus/examples/test $0 $163 +$163
Infracost output
Project: cn-terraform/terraform-aws-nexus/examples/test

+ module.base-network.aws_eip.nat_eip[0]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[1]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[2]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_eip.nat_eip[3]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.base-network.aws_nat_gateway.nat_gw[0]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[1]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[2]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.base-network.aws_nat_gateway.nat_gw[3]
  +$32.85

    + NAT gateway
      +$32.85

    + Data processed
      Monthly cost depends on usage
        +$0.045 per GB

+ module.nexus.module.aws_cw_logs.aws_cloudwatch_log_group.log_group
  Monthly cost depends on usage

    + Data ingested
      Monthly cost depends on usage
        +$0.50 per GB

    + Archival Storage
      Monthly cost depends on usage
        +$0.03 per GB

    + Insights queries data scanned
      Monthly cost depends on usage
        +$0.005 per GB

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.aws_ecs_service.service
  $0.00

    + Per GB per hour
      $0.00

    + Per vCPU per hour
      $0.00

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.aws_lb.lb
  +$16.43

    + Application load balancer
      +$16.43

    + Load balancer capacity units
      Monthly cost depends on usage
        +$5.84 per LCU

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-alb.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

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.nexus.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_low
  +$0.10

    + Standard resolution
      +$0.10

Monthly cost change for cn-terraform/terraform-aws-nexus/examples/test
Amount:  +$163 ($0.00 β†’ $163)

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

65 cloud resources were detected, rerun with --show-skipped to see details:
βˆ™ 14 were estimated, 7 include usage-based costs, see https://infracost.io/usage-file
βˆ™ 4 weren't estimated, report them in https://github.com/infracost/infracost
βˆ™ 47 were free

Add cost estimates to your pull requests: https://infracost.io/cicd
Is this comment useful? Yes, No

Please sign in to comment.