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

add a Makefile command to estimate infrastructure costs #72

Open
1 of 2 tasks
bernard357 opened this issue Feb 3, 2023 · 1 comment
Open
1 of 2 tasks

add a Makefile command to estimate infrastructure costs #72

bernard357 opened this issue Feb 3, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@bernard357
Copy link
Contributor

bernard357 commented Feb 3, 2023

What is this?

This is a new CLI command added to the SPA project to estimate the cost of SPA deployment. When you type the command make cost-estimation this generates a CloudFormation template and passes it to the AWS CLI command estimate-template-cost. The output is a link to the AWS Calculator with cost indication for resources in the template.

Learn more:

Why is this important?

While SPA is based on serverless AWS products and services, and very cost-effective, we need to factually estimate costs that it can incur.

How to implement it?

The AWS CLI has a command to bridge with the AWS Cost Calculator

Definition of Done

  • Add to Makefile a new target cost-estimation with appropriate shell commands
  • send temporary template to a S3 bucket
@bernard357
Copy link
Contributor Author

Feb-17: make command has been implemented. However, the template generated by CDK for SPA is too big for the AWS CLI command. The template should be uploaded to a S3 bucket instead.

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

No branches or pull requests

1 participant