Most of the recipes in this book have been managed and launched using CloudFormation, the AWS Infrastructure as Code service.
For this recipe, you will need an existing CloudFormation template. The template does not need to be deployed as a stack;, just the file is required.
In this example, we will use the template from Chapter 4, Using AWS Compute, to securely access private instances: 06-create-database-with-automatic-failover.yaml
.
- Run the command to generate the report:
aws cloudformation estimate-template-cost \ --template-body \ file://06-create-database-with-automatic-failover.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...