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 3de32fb commit 3ab2712
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
27 changes: 14 additions & 13 deletions .terraform.lock.hcl

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

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ In order to run all checks at any point run the following command:

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

## Providers

Expand All @@ -73,10 +74,10 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_jenkins"></a> [jenkins](#module\_jenkins) | cn-terraform/jenkins/aws | 2.0.13 |
| <a name="module_networking"></a> [networking](#module\_networking) | cn-terraform/networking/aws | 2.0.13 |
| <a name="module_nexus"></a> [nexus](#module\_nexus) | cn-terraform/nexus/aws | 1.0.11 |
| <a name="module_sonar"></a> [sonar](#module\_sonar) | cn-terraform/sonarqube/aws | 2.0.23 |
| <a name="module_jenkins"></a> [jenkins](#module\_jenkins) | cn-terraform/jenkins/aws | 2.0.16 |
| <a name="module_networking"></a> [networking](#module\_networking) | cn-terraform/networking/aws | 2.0.14 |
| <a name="module_nexus"></a> [nexus](#module\_nexus) | cn-terraform/nexus/aws | 1.0.13 |
| <a name="module_sonar"></a> [sonar](#module\_sonar) | cn-terraform/sonarqube/aws | 2.0.26 |

## Resources

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

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

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 3ab2712

@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 $1044 πŸ“ˆ

Project Previous New Diff
cn-terraform/terraform-aws-ci-cd-system/examples/test $0 $1044 +$1044
Infracost output
Project: cn-terraform/terraform-aws-ci-cd-system/examples/test

+ module.cicd.module.jenkins.aws_efs_file_system.jenkins_data
  Monthly cost depends on usage

    + Storage (standard)
      Monthly cost depends on usage
        +$0.30 per GB

+ module.cicd.module.jenkins.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.cicd.module.jenkins.module.ecs-fargate-service.aws_ecs_service.service
  $0.00

    + Per GB per hour
      $0.00

    + Per vCPU per hour
      $0.00

+ module.cicd.module.jenkins.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.cicd.module.jenkins.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.cicd.module.jenkins.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.jenkins.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_low
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.networking.aws_eip.nat_eip[0]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[1]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[2]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[3]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[0]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[1]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[2]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[3]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.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.cicd.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.cicd.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.cicd.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.cicd.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.cicd.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

+ module.cicd.module.sonar.aws_kms_key.encryption_key
  +$1.00

    + Customer master key
      +$1.00

    + Requests
      Monthly cost depends on usage
        +$0.03 per 10k requests

    + ECC GenerateDataKeyPair requests
      Monthly cost depends on usage
        +$0.10 per 10k requests

    + RSA GenerateDataKeyPair requests
      Monthly cost depends on usage
        +$0.10 per 10k requests

+ module.cicd.module.sonar.aws_rds_cluster.aurora_db
  Monthly cost depends on usage

    + Storage
      Monthly cost depends on usage
        +$0.10 per GB

    + I/O requests
      Monthly cost depends on usage
        +$0.20 per 1M requests

    + Backup storage
      Monthly cost depends on usage
        +$0.021 per GB

    + Snapshot export
      Monthly cost depends on usage
        +$0.01 per GB

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[0]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[1]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[2]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[3]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.sonar.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-ci-cd-system/examples/test
Amount:  +$1,044 ($0.00 β†’ $1,044)

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

130 cloud resources were detected, rerun with --show-skipped to see details:
βˆ™ 33 were estimated, 19 include usage-based costs, see https://infracost.io/usage-file
βˆ™ 16 weren't estimated, report them in https://github.com/infracost/infracost
βˆ™ 81 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 $1044 πŸ“ˆ

Project Previous New Diff
cn-terraform/terraform-aws-ci-cd-system/examples/test $0 $1044 +$1044
Infracost output
Project: cn-terraform/terraform-aws-ci-cd-system/examples/test

+ module.cicd.module.jenkins.aws_efs_file_system.jenkins_data
  Monthly cost depends on usage

    + Storage (standard)
      Monthly cost depends on usage
        +$0.30 per GB

+ module.cicd.module.jenkins.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.cicd.module.jenkins.module.ecs-fargate-service.aws_ecs_service.service
  $0.00

    + Per GB per hour
      $0.00

    + Per vCPU per hour
      $0.00

+ module.cicd.module.jenkins.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.cicd.module.jenkins.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.cicd.module.jenkins.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.jenkins.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_low
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.networking.aws_eip.nat_eip[0]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[1]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[2]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_eip.nat_eip[3]
  +$3.65

    + IP address (if unused)
      +$3.65

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[0]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[1]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[2]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.module.networking.aws_nat_gateway.nat_gw[3]
  +$32.85

    + NAT gateway
      +$32.85

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

+ module.cicd.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.cicd.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.cicd.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.cicd.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.cicd.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.cicd.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

+ module.cicd.module.sonar.aws_kms_key.encryption_key
  +$1.00

    + Customer master key
      +$1.00

    + Requests
      Monthly cost depends on usage
        +$0.03 per 10k requests

    + ECC GenerateDataKeyPair requests
      Monthly cost depends on usage
        +$0.10 per 10k requests

    + RSA GenerateDataKeyPair requests
      Monthly cost depends on usage
        +$0.10 per 10k requests

+ module.cicd.module.sonar.aws_rds_cluster.aurora_db
  Monthly cost depends on usage

    + Storage
      Monthly cost depends on usage
        +$0.10 per GB

    + I/O requests
      Monthly cost depends on usage
        +$0.20 per 1M requests

    + Backup storage
      Monthly cost depends on usage
        +$0.021 per GB

    + Snapshot export
      Monthly cost depends on usage
        +$0.01 per GB

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[0]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[1]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[2]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.aws_rds_cluster_instance.aurora_db_cluster_instances[3]
  +$212

    + Database instance (on-demand, db.r4.large)
      +$212

+ module.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.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.cicd.module.sonar.module.ecs_fargate.module.ecs-fargate-service.module.ecs-autoscaling[0].aws_cloudwatch_metric_alarm.cpu_high
  +$0.10

    + Standard resolution
      +$0.10

+ module.cicd.module.sonar.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-ci-cd-system/examples/test
Amount:  +$1,044 ($0.00 β†’ $1,044)

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

130 cloud resources were detected, rerun with --show-skipped to see details:
βˆ™ 33 were estimated, 19 include usage-based costs, see https://infracost.io/usage-file
βˆ™ 16 weren't estimated, report them in https://github.com/infracost/infracost
βˆ™ 81 were free

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

Please sign in to comment.