Follow these steps to use a CloudFormation template as the basis for cost estimation:
- Run the following command to generate the report:
aws cloudformation estimate-template-cost
--template-body
file://06-01-RDS.yaml
--parameters ParameterKey=VPCId,ParameterValue=test
ParameterKey=SubnetIds,ParameterValue="test,test"
ParameterKey=DBUsername,ParameterValue=test
ParameterKey=DBPassword,ParameterValue=test
--query Url
--output text
- Click or copy and paste the URL into a browser to see the report:
AWS Simple Monthly Calculator
- Click on Amazon RDS in the left-hand menu to see the individual service page details:
AWS Simple Monthly Calculator—RDS
- Click on Estimate of your Monthly Bill to see a total summary of the template resources:
AWS Simple Monthly Calculator—total monthly payment
Using a CloudFormation template can save you a lot of time with the AWS Simple Monthly Calculator.