diff --git a/aws/cost/postgresql/cost.py b/aws/cost/postgresql/cost.py index b97afb8aa..84cb2a0d1 100644 --- a/aws/cost/postgresql/cost.py +++ b/aws/cost/postgresql/cost.py @@ -64,4 +64,18 @@ LEFT JOIN "aws_ec2_ebs_volumes" as vols ON costquery.line_item_resource_id = vols.volume_id WHERE vols.volume_type = 'gp2' -""" \ No newline at end of file +""" + +#AWS Compute Optimizer Section +#TODO: Separate this out to a different file +COMPUTE_OPTIMIZER_RESULTS = """ +CREATE OR REPLACE VIEW compute_optimizer_results as +SELECT * +FROM (SELECT * + FROM aws_computeoptimizer_ec2_instance_recommendations + FULL JOIN aws_computeoptimizer_lambda_function_recommendations on true + FULL JOIN aws_computeoptimizer_ebs_volume_recommendations on true + FULL JOIN aws_computeoptimizer_ecs_service_recommendations on true + FULL JOIN aws_computeoptimizer_autoscaling_group_recommendations on true +) as compute_opt +"""