Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBL-541: cost optimization - update natgw and cloudwatch #452

Merged
merged 2 commits into from
Dec 28, 2022

Conversation

rodriguez-matias
Copy link
Contributor

What?

  • Cost Optimization

How?

  • Update some flags raleted to Natgateway and CloudWatch dashboard to optimize costs of some resources that are not in use.

Reference

@rodriguez-matias rodriguez-matias requested a review from a team as a code owner December 15, 2022 12:55
@rodriguez-matias rodriguez-matias self-assigned this Dec 15, 2022
@github-actions
Copy link

github-actions bot commented Dec 15, 2022

💰 Infracost estimate: monthly cost will increase by $120 (+7%) 📈

Project Previous New Diff
binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/cluster $0 $117 +$117
binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-audit $8.60 $2.60 -$6.00 (-70%)
binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-audit $8.60 $2.60 -$6.00 (-70%)
binbashar/le-tf-infra-aws/management/us-east-1/security-audit $8.60 $2.60 -$6.00 (-70%)
binbashar/le-tf-infra-aws/network/us-east-1/security-audit $8.60 $2.60 -$6.00 (-70%)
binbashar/le-tf-infra-aws/shared/us-east-1/base-network $0 $32.85 +$32.85
binbashar/le-tf-infra-aws/shared/us-east-1/security-audit $8.60 $2.60 -$6.00 (-70%)
All projects $1,766 $1,886 +$120 (+7%)

122 projects have no cost estimate changes.

Infracost output
──────────────────────────────────
Project: binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/cluster
Module path: apps-devstg/us-east-1/k8s-eks/cluster

+ module.cluster.aws_cloudwatch_log_group.this[0]
  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.cluster.aws_eks_cluster.this[0]
  +$73.00

    + EKS cluster
      +$73.00

+ module.cluster.module.eks_managed_node_group["on-demand"].aws_eks_node_group.this[0]
  +$33.87

    + Instance usage (Linux/UNIX, on-demand, t2.medium)
      +$33.87

    + Storage (general purpose SSD, gp2)
      $0.00

+ module.cluster.module.eks_managed_node_group["spot"].aws_eks_node_group.this[0]
  +$10.15

    + Instance usage (Linux/UNIX, spot, t2.medium)
      +$10.15

    + Storage (general purpose SSD, gp2)
      $0.00

Monthly cost change for binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/cluster (Module path: apps-devstg/us-east-1/k8s-eks/cluster)
Amount:  +$117 ($0.00 → $117)

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-audit
Module path: apps-devstg/us-east-1/security-audit

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.combined[0]
  -$3.00

    - Dashboard
      -$3.00

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.individual[0]
  -$3.00

    - Dashboard
      -$3.00

Monthly cost change for binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-audit (Module path: apps-devstg/us-east-1/security-audit)
Amount:  -$6.00 ($8.60 → $2.60)
Percent: -70%

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-audit
Module path: apps-prd/us-east-1/security-audit

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.combined[0]
  -$3.00

    - Dashboard
      -$3.00

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.individual[0]
  -$3.00

    - Dashboard
      -$3.00

Monthly cost change for binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-audit (Module path: apps-prd/us-east-1/security-audit)
Amount:  -$6.00 ($8.60 → $2.60)
Percent: -70%

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/management/us-east-1/security-audit
Module path: management/us-east-1/security-audit

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.combined[0]
  -$3.00

    - Dashboard
      -$3.00

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.individual[0]
  -$3.00

    - Dashboard
      -$3.00

Monthly cost change for binbashar/le-tf-infra-aws/management/us-east-1/security-audit (Module path: management/us-east-1/security-audit)
Amount:  -$6.00 ($8.60 → $2.60)
Percent: -70%

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/network/us-east-1/security-audit
Module path: network/us-east-1/security-audit

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.combined[0]
  -$3.00

    - Dashboard
      -$3.00

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.individual[0]
  -$3.00

    - Dashboard
      -$3.00

Monthly cost change for binbashar/le-tf-infra-aws/network/us-east-1/security-audit (Module path: network/us-east-1/security-audit)
Amount:  -$6.00 ($8.60 → $2.60)
Percent: -70%

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/shared/us-east-1/base-network
Module path: shared/us-east-1/base-network

+ module.vpc.aws_nat_gateway.this[0]
  +$32.85

    + NAT gateway
      +$32.85

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

Monthly cost change for binbashar/le-tf-infra-aws/shared/us-east-1/base-network (Module path: shared/us-east-1/base-network)
Amount:  +$32.85 ($0.00 → $32.85)

──────────────────────────────────
Project: binbashar/le-tf-infra-aws/shared/us-east-1/security-audit
Module path: shared/us-east-1/security-audit

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.combined[0]
  -$3.00

    - Dashboard
      -$3.00

- module.cloudtrail_api_alarms.aws_cloudwatch_dashboard.individual[0]
  -$3.00

    - Dashboard
      -$3.00

Monthly cost change for binbashar/le-tf-infra-aws/shared/us-east-1/security-audit (Module path: shared/us-east-1/security-audit)
Amount:  -$6.00 ($8.60 → $2.60)
Percent: -70%

──────────────────────────────────

The following projects have no cost estimate changes: binbashar/le-tf-infra-aws/apps-devstg/global/base-identities (Module path: apps-devstg/global/base-identities), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/backups -- (Module path: apps-devstg/us-east-1/backups --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/base-network (Module path: apps-devstg/us-east-1/base-network), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/base-tf-backend (Module path: apps-devstg/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/cdn-s3-frontend -- (Module path: apps-devstg/us-east-1/cdn-s3-frontend --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/databases-aurora (Module path: apps-devstg/us-east-1/databases-aurora), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/databases-mysql -- (Module path: apps-devstg/us-east-1/databases-mysql --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/databases-pgsql -- (Module path: apps-devstg/us-east-1/databases-pgsql --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/ec2-fleet-ansible -- (Module path: apps-devstg/us-east-1/ec2-fleet-ansible --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps/cluster (Module path: apps-devstg/us-east-1/k8s-eks-demoapps/cluster), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps/identities (Module path: apps-devstg/us-east-1/k8s-eks-demoapps/identities), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps/k8s-components (Module path: apps-devstg/us-east-1/k8s-eks-demoapps/k8s-components), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps/k8s-workloads (Module path: apps-devstg/us-east-1/k8s-eks-demoapps/k8s-workloads), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps/network (Module path: apps-devstg/us-east-1/k8s-eks-demoapps/network), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-v1.17/cluster (Module path: apps-devstg/us-east-1/k8s-eks-v1.17/cluster), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-v1.17/identities (Module path: apps-devstg/us-east-1/k8s-eks-v1.17/identities), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-v1.17/k8s-resources (Module path: apps-devstg/us-east-1/k8s-eks-v1.17/k8s-resources), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-v1.17/k8s-workloads (Module path: apps-devstg/us-east-1/k8s-eks-v1.17/k8s-workloads), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-v1.17/network (Module path: apps-devstg/us-east-1/k8s-eks-v1.17/network), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/identities (Module path: apps-devstg/us-east-1/k8s-eks/identities), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/k8s-components (Module path: apps-devstg/us-east-1/k8s-eks/k8s-components), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/k8s-workloads (Module path: apps-devstg/us-east-1/k8s-eks/k8s-workloads), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks/network (Module path: apps-devstg/us-east-1/k8s-eks/network), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-kind/k8s-resources (Module path: apps-devstg/us-east-1/k8s-kind/k8s-resources), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-kops --/1-prerequisites (Module path: apps-devstg/us-east-1/k8s-kops --/1-prerequisites), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/k8s-kops --/2-kops (Module path: apps-devstg/us-east-1/k8s-kops --/2-kops), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/notifications (Module path: apps-devstg/us-east-1/notifications), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-base (Module path: apps-devstg/us-east-1/security-base), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-certs (Module path: apps-devstg/us-east-1/security-certs), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-compliance -- (Module path: apps-devstg/us-east-1/security-compliance --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-firewall -- (Module path: apps-devstg/us-east-1/security-firewall --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/security-keys (Module path: apps-devstg/us-east-1/security-keys), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/storage/s3-bucket-demo-files -- (Module path: apps-devstg/us-east-1/storage/s3-bucket-demo-files --), binbashar/le-tf-infra-aws/apps-devstg/us-east-1/tools-cloud-nuke (Module path: apps-devstg/us-east-1/tools-cloud-nuke), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/k8s-eks-v1.17/cluster (Module path: apps-devstg/us-east-2/k8s-eks-v1.17/cluster), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/k8s-eks-v1.17/identities (Module path: apps-devstg/us-east-2/k8s-eks-v1.17/identities), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/k8s-eks-v1.17/k8s-resources (Module path: apps-devstg/us-east-2/k8s-eks-v1.17/k8s-resources), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/k8s-eks-v1.17/k8s-workloads (Module path: apps-devstg/us-east-2/k8s-eks-v1.17/k8s-workloads), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/k8s-eks-v1.17/network (Module path: apps-devstg/us-east-2/k8s-eks-v1.17/network), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/security-compliance -- (Module path: apps-devstg/us-east-2/security-compliance --), binbashar/le-tf-infra-aws/apps-devstg/us-east-2/security-keys (Module path: apps-devstg/us-east-2/security-keys), binbashar/le-tf-infra-aws/apps-prd/global/base-identities (Module path: apps-prd/global/base-identities), binbashar/le-tf-infra-aws/apps-prd/us-east-1/backups -- (Module path: apps-prd/us-east-1/backups --), binbashar/le-tf-infra-aws/apps-prd/us-east-1/base-network (Module path: apps-prd/us-east-1/base-network), binbashar/le-tf-infra-aws/apps-prd/us-east-1/base-tf-backend (Module path: apps-prd/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/apps-prd/us-east-1/cdn-s3-frontend -- (Module path: apps-prd/us-east-1/cdn-s3-frontend --), binbashar/le-tf-infra-aws/apps-prd/us-east-1/ec2-fleet -- (Module path: apps-prd/us-east-1/ec2-fleet --), binbashar/le-tf-infra-aws/apps-prd/us-east-1/notifications (Module path: apps-prd/us-east-1/notifications), binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-base (Module path: apps-prd/us-east-1/security-base), binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-certs (Module path: apps-prd/us-east-1/security-certs), binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-compliance -- (Module path: apps-prd/us-east-1/security-compliance --), binbashar/le-tf-infra-aws/apps-prd/us-east-1/security-keys (Module path: apps-prd/us-east-1/security-keys), binbashar/le-tf-infra-aws/management/global/base-identities (Module path: management/global/base-identities), binbashar/le-tf-infra-aws/management/global/cost-mgmt (Module path: management/global/cost-mgmt), binbashar/le-tf-infra-aws/management/global/organizations (Module path: management/global/organizations), binbashar/le-tf-infra-aws/management/global/sso (Module path: management/global/sso), binbashar/le-tf-infra-aws/management/us-east-1/backups (Module path: management/us-east-1/backups), binbashar/le-tf-infra-aws/management/us-east-1/base-tf-backend (Module path: management/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/management/us-east-1/firewall-manager (Module path: management/us-east-1/firewall-manager), binbashar/le-tf-infra-aws/management/us-east-1/notifications (Module path: management/us-east-1/notifications), binbashar/le-tf-infra-aws/management/us-east-1/security-base (Module path: management/us-east-1/security-base), binbashar/le-tf-infra-aws/management/us-east-1/security-compliance (Module path: management/us-east-1/security-compliance), binbashar/le-tf-infra-aws/management/us-east-1/security-keys (Module path: management/us-east-1/security-keys), binbashar/le-tf-infra-aws/management/us-east-1/security-monitoring (Module path: management/us-east-1/security-monitoring), binbashar/le-tf-infra-aws/management/us-east-2/security-monitoring -- (Module path: management/us-east-2/security-monitoring --), binbashar/le-tf-infra-aws/network/global/base-identities (Module path: network/global/base-identities), binbashar/le-tf-infra-aws/network/us-east-1/base-network (Module path: network/us-east-1/base-network), binbashar/le-tf-infra-aws/network/us-east-1/base-tf-backend (Module path: network/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/network/us-east-1/network-firewall (Module path: network/us-east-1/network-firewall), binbashar/le-tf-infra-aws/network/us-east-1/notifications (Module path: network/us-east-1/notifications), binbashar/le-tf-infra-aws/network/us-east-1/security-base (Module path: network/us-east-1/security-base), binbashar/le-tf-infra-aws/network/us-east-1/security-compliance -- (Module path: network/us-east-1/security-compliance --), binbashar/le-tf-infra-aws/network/us-east-1/security-keys (Module path: network/us-east-1/security-keys), binbashar/le-tf-infra-aws/network/us-east-1/transit-gateway (Module path: network/us-east-1/transit-gateway), binbashar/le-tf-infra-aws/network/us-east-2/base-network (Module path: network/us-east-2/base-network), binbashar/le-tf-infra-aws/network/us-east-2/network-firewall (Module path: network/us-east-2/network-firewall), binbashar/le-tf-infra-aws/network/us-east-2/security-compliance -- (Module path: network/us-east-2/security-compliance --), binbashar/le-tf-infra-aws/network/us-east-2/security-keys (Module path: network/us-east-2/security-keys), binbashar/le-tf-infra-aws/network/us-east-2/transit-gateway (Module path: network/us-east-2/transit-gateway), binbashar/le-tf-infra-aws/security/global/base-identities (Module path: security/global/base-identities), binbashar/le-tf-infra-aws/security/us-east-1/base-tf-backend (Module path: security/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/security/us-east-1/firewall-manager (Module path: security/us-east-1/firewall-manager), binbashar/le-tf-infra-aws/security/us-east-1/notifications (Module path: security/us-east-1/notifications), binbashar/le-tf-infra-aws/security/us-east-1/security-audit (Module path: security/us-east-1/security-audit), binbashar/le-tf-infra-aws/security/us-east-1/security-base (Module path: security/us-east-1/security-base), binbashar/le-tf-infra-aws/security/us-east-1/security-compliance -- (Module path: security/us-east-1/security-compliance --), binbashar/le-tf-infra-aws/security/us-east-1/security-keys (Module path: security/us-east-1/security-keys), binbashar/le-tf-infra-aws/security/us-east-1/security-monitoring (Module path: security/us-east-1/security-monitoring), binbashar/le-tf-infra-aws/security/us-east-2/security-audit (Module path: security/us-east-2/security-audit), binbashar/le-tf-infra-aws/security/us-east-2/security-compliance -- (Module path: security/us-east-2/security-compliance --), binbashar/le-tf-infra-aws/security/us-east-2/security-monitoring -- (Module path: security/us-east-2/security-monitoring --), binbashar/le-tf-infra-aws/shared/global/base-dns/binbash.com.ar (Module path: shared/global/base-dns/binbash.com.ar), binbashar/le-tf-infra-aws/shared/global/base-identities (Module path: shared/global/base-identities), binbashar/le-tf-infra-aws/shared/us-east-1/backups (Module path: shared/us-east-1/backups), binbashar/le-tf-infra-aws/shared/us-east-1/base-tf-backend (Module path: shared/us-east-1/base-tf-backend), binbashar/le-tf-infra-aws/shared/us-east-1/container-registry (Module path: shared/us-east-1/container-registry), binbashar/le-tf-infra-aws/shared/us-east-1/ec2-fleet -- (Module path: shared/us-east-1/ec2-fleet --), binbashar/le-tf-infra-aws/shared/us-east-1/ec2-fleet-bastions -- (Module path: shared/us-east-1/ec2-fleet-bastions --), binbashar/le-tf-infra-aws/shared/us-east-1/k8s-eks-demoapps/identities (Module path: shared/us-east-1/k8s-eks-demoapps/identities), binbashar/le-tf-infra-aws/shared/us-east-1/notifications (Module path: shared/us-east-1/notifications), binbashar/le-tf-infra-aws/shared/us-east-1/secrets-manager (Module path: shared/us-east-1/secrets-manager), binbashar/le-tf-infra-aws/shared/us-east-1/security-base (Module path: shared/us-east-1/security-base), binbashar/le-tf-infra-aws/shared/us-east-1/security-compliance -- (Module path: shared/us-east-1/security-compliance --), binbashar/le-tf-infra-aws/shared/us-east-1/security-keys (Module path: shared/us-east-1/security-keys), binbashar/le-tf-infra-aws/shared/us-east-1/storage/backup-gdrive -- (Module path: shared/us-east-1/storage/backup-gdrive --), binbashar/le-tf-infra-aws/shared/us-east-1/storage/object-file-shares-for-users-list -- (Module path: shared/us-east-1/storage/object-file-shares-for-users-list --), binbashar/le-tf-infra-aws/shared/us-east-1/storage/object-file-shares-sftp-transfer-service -- (Module path: shared/us-east-1/storage/object-file-shares-sftp-transfer-service --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-cloud-scheduler-stop-start (Module path: shared/us-east-1/tools-cloud-scheduler-stop-start), binbashar/le-tf-infra-aws/shared/us-east-1/tools-eskibana -- (Module path: shared/us-east-1/tools-eskibana --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-github-selfhosted-runners (Module path: shared/us-east-1/tools-github-selfhosted-runners), binbashar/le-tf-infra-aws/shared/us-east-1/tools-jenkins -- (Module path: shared/us-east-1/tools-jenkins --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-managedeskibana -- (Module path: shared/us-east-1/tools-managedeskibana --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-prometheus-grafana -- (Module path: shared/us-east-1/tools-prometheus-grafana --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-vault -- (Module path: shared/us-east-1/tools-vault --), binbashar/le-tf-infra-aws/shared/us-east-1/tools-vpn-server (Module path: shared/us-east-1/tools-vpn-server), binbashar/le-tf-infra-aws/shared/us-east-1/tools-webhooks -- (Module path: shared/us-east-1/tools-webhooks --), binbashar/le-tf-infra-aws/shared/us-east-2/base-network (Module path: shared/us-east-2/base-network), binbashar/le-tf-infra-aws/shared/us-east-2/container-registry (Module path: shared/us-east-2/container-registry), binbashar/le-tf-infra-aws/shared/us-east-2/security-compliance -- (Module path: shared/us-east-2/security-compliance --), binbashar/le-tf-infra-aws/shared/us-east-2/security-keys (Module path: shared/us-east-2/security-keys), binbashar/le-tf-infra-aws/shared/us-east-2/tools-eskibana -- (Module path: shared/us-east-2/tools-eskibana --), binbashar/le-tf-infra-aws/shared/us-east-2/tools-prometheus-grafana -- (Module path: shared/us-east-2/tools-prometheus-grafana --)
Run the following command to see their breakdown: infracost breakdown --path=/path/to/code

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

572 cloud resources were detected:
∙ 572 were estimated, 440 of which include usage-based costs, see https://infracost.io/usage-file

This comment will be updated when the cost estimate changes.

Is this comment useful? Yes, No, Other

@rodriguez-matias
Copy link
Contributor Author

Before

$ grep -rnw './' -e 'vpc_enable_nat_gateway ='

.//apps-devstg/us-east-2/k8s-eks-v1.17/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false

.//apps-devstg/us-east-1/k8s-eks-demoapps/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/base-network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/k8s-eks-v1.17/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/k8s-eks/network/network.auto.tfvars:1:vpc_enable_nat_gateway = true

.//apps-prd/us-east-1/base-network/network.auto.tfvars:1:vpc_enable_nat_gateway = false

.//network/us-east-2/base-network/network.auto.tfvars:2:vpc_enable_nat_gateway = false
.//network/README.md:14:vpc_enable_nat_gateway = true
.//network/us-east-1/base-network/network.auto.tfvars:2:vpc_enable_nat_gateway = false

.//shared/us-east-2/base-network/terraform.tfvars:1:vpc_enable_nat_gateway = true
.//shared/us-east-1/base-network/terraform.tfvars:1:vpc_enable_nat_gateway = false

$ grep -A3 -rnw './' -e 'variable "create_dashboard"'

.//apps-devstg/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//apps-devstg/us-east-1/security-audit/variables.tf-11-  type        = bool
.//apps-devstg/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//apps-devstg/us-east-1/security-audit/variables.tf-13-  default     = true
--
.//apps-prd/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//apps-prd/us-east-1/security-audit/variables.tf-11-  type        = bool
.//apps-prd/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//apps-prd/us-east-1/security-audit/variables.tf-13-  default     = true
--

.//security/us-east-1/security-audit/variables.tf:16:variable "create_dashboard" {
.//security/us-east-1/security-audit/variables.tf-17-  type        = bool
.//security/us-east-1/security-audit/variables.tf-18-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//security/us-east-1/security-audit/variables.tf-19-  default     = true
--
.//network/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//network/us-east-1/security-audit/variables.tf-11-  type        = bool
.//network/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//network/us-east-1/security-audit/variables.tf-13-  default     = true
--
.//management/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//management/us-east-1/security-audit/variables.tf-11-  type        = bool
.//management/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//management/us-east-1/security-audit/variables.tf-13-  default     = true
--
.//shared/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//shared/us-east-1/security-audit/variables.tf-11-  type        = bool
.//shared/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//shared/us-east-1/security-audit/variables.tf-13-  default     = true

@rodriguez-matias
Copy link
Contributor Author

After

$ grep -rnw './' -e 'vpc_enable_nat_gateway ='

.//apps-devstg/us-east-2/k8s-eks-v1.17/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/k8s-eks-demoapps/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/base-network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/k8s-eks-v1.17/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-devstg/us-east-1/k8s-eks/network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//apps-prd/us-east-1/base-network/network.auto.tfvars:1:vpc_enable_nat_gateway = false
.//network/us-east-2/base-network/network.auto.tfvars:2:vpc_enable_nat_gateway = false
.//network/README.md:14:vpc_enable_nat_gateway = true
.//network/us-east-1/base-network/network.auto.tfvars:2:vpc_enable_nat_gateway = false
.//shared/us-east-2/base-network/terraform.tfvars:1:vpc_enable_nat_gateway = false
.//shared/us-east-1/base-network/terraform.tfvars:1:vpc_enable_nat_gateway = true

$ grep -A3 -rnw './' -e 'variable "create_dashboard"'

.//apps-devstg/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//apps-devstg/us-east-1/security-audit/variables.tf-11-  type        = bool
.//apps-devstg/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//apps-devstg/us-east-1/security-audit/variables.tf-13-  default     = false
--
.//apps-prd/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//apps-prd/us-east-1/security-audit/variables.tf-11-  type        = bool
.//apps-prd/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//apps-prd/us-east-1/security-audit/variables.tf-13-  default     = false
--
.//security/us-east-1/security-audit/variables.tf:16:variable "create_dashboard" {
.//security/us-east-1/security-audit/variables.tf-17-  type        = bool
.//security/us-east-1/security-audit/variables.tf-18-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//security/us-east-1/security-audit/variables.tf-19-  default     = true
--
.//network/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//network/us-east-1/security-audit/variables.tf-11-  type        = bool
.//network/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//network/us-east-1/security-audit/variables.tf-13-  default     = false
--
.//management/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//management/us-east-1/security-audit/variables.tf-11-  type        = bool
.//management/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//management/us-east-1/security-audit/variables.tf-13-  default     = false
--
.//shared/us-east-1/security-audit/variables.tf:10:variable "create_dashboard" {
.//shared/us-east-1/security-audit/variables.tf-11-  type        = bool
.//shared/us-east-1/security-audit/variables.tf-12-  description = "When true a dashboard that displays the statistics as a line graph will be created in CloudWatch"
.//shared/us-east-1/security-audit/variables.tf-13-  default     = false

@exequielrafaela exequielrafaela added enhancement New feature or request patch labels Dec 28, 2022
@exequielrafaela exequielrafaela merged commit 8b1c39c into master Dec 28, 2022
@rodriguez-matias rodriguez-matias deleted the BBL-541/cost-optimization branch December 29, 2022 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants