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

Use bigger instances #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use bigger instances #12

wants to merge 1 commit into from

Conversation

alikhajeh1
Copy link
Member

@alikhajeh1 alikhajeh1 commented Jan 10, 2024

Generated description

Below is a concise technical summary of the changes proposed in this PR:

Update the instance size of azurerm_linux_virtual_machine to Basic_A4 and modify the service tag in azurerm_app_service_plan to web-app1.

TopicDetails
Tag Update Modify the service tag in azurerm_app_service_plan to web-app1 for better identification.
Modified files (1)
  • terraform/main.tf
Latest Contributors(2)
EmailCommitDate
[email protected]TestJanuary 10, 2024
[email protected]Initial-setupMay 29, 2021
Instance Upgrade Increase the instance size of azurerm_linux_virtual_machine to enhance performance.
Modified files (1)
  • terraform/main.tf
Latest Contributors(2)
EmailCommitDate
[email protected]TestJanuary 10, 2024
[email protected]Initial-setupMay 29, 2021
This pull request is reviewed by Baz. Join @alikhajeh1 and the rest of your team on (Baz).

@alikhajeh1
Copy link
Member Author

Infracost report

💰 Monthly cost will increase by $199 📈

Project Cost change New monthly cost
infracost/azure-devops-github-demo/terraform +$199 (+96%) $406
Cost details
──────────────────────────────────
Project: infracost/azure-devops-github-demo/terraform
Module path: terraform

~ azurerm_linux_virtual_machine.my_vm
  +$199 ($59 → $258)

    ~ Instance usage (Linux, pay as you go, Basic_A2 → Basic_A4)
      +$199 ($58 → $257)

Monthly cost change for infracost/azure-devops-github-demo/terraform (Module path: terraform)
Amount:  +$199 ($207 → $406)
Percent: +96%

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

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

Infracost estimate: Monthly cost will increase by $199 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ Project                                            ┃ Cost change  ┃ New monthly cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━┫
┃ infracost/azure-devops-github-demo/terraform       ┃ +$199 (+96%) ┃ $406             ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━┛

Governance checks

🔴 4 failures
App Service - consider upgrading Premium service plans to v3: The Premium v3 pricing tier gives faster processors, SSD storage, memory-optimized options, and double the memory-to-core ratio of the Premium v2 tier. With the performance advantage, you could save money by running your apps on fewer instances. For example, the P2v2 plan provides 2 cores, 7 GB of RAM, and 250 GB of storage for $161/month. The P1v3 plan gives 2 cores, 8 GB of RAM, and 250 GB for $124/month, savings of 23%. Additionally, Premium v3 plans are eligible for savings plans and reserved instance pricing, opening opportunities for further savings.

azurerm_app_service_plan.my_app at terraform/main.tf:37

  • Switch sku.size from P1v2 to P0v3

in project infracost/azure-devops-github-demo/terraform

Virtual Machines - consider upgrading basic A series machines to an Av2 machine: Upgrade to the Av2-series of machine to get a better performance using a newer Intel Xeon processor. There is no cost benefit upgrading from Basic A, however Basic and Standard A series will retire 31 August 2024. For a Standard A upgrade though, for example, a A3 instance (with 4 cores, 7 GB RAM and 285 GB temporary storage) has a monthly cost of $175 (East US region); in comparison a A4 v2 instance (4 cores, 8 GB RAM, 40 GB storage) costs $139. This is a 20% saving for a more performant machine.

azurerm_linux_virtual_machine.my_vm at terraform/main.tf:6

  • Upgrade Basic_A4 to a VM in the Av2-series.

in project infracost/azure-devops-github-demo/terraform

FinOps tags: FinOps tags enable us to report on and optimize cloud costs, please see https://acme-inc.atlassian.com/finops/tagging for more information.

azurerm_linux_virtual_machine.my_vm at terraform/main.tf:6

  • Environment has invalid value production. Must be one of Dev, Stage, Prod

in project infracost/azure-devops-github-demo/terraform

Threshold warning

At least one project exceeded per-project threshold. Cost increased by $199, threshold was $10. This example Guardrail shows how you can monitor pull request costs, and trigger actions when your defined thresholds are exceeded. You can adjust it from https://dashboard.infracost.io > Governance > Guardrails. You have a 14 day trial of this feature as it's part of Infracost Cloud.

🟢 48 passed
46 FinOps policies, 0 Tagging policies, and 2 Guardrails passed.

View in Infracost Cloud. This comment will be updated when code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant