Skip to content

Commit

Permalink
chore: Add GCP provider to floorist
Browse files Browse the repository at this point in the history
  • Loading branch information
avitova committed Oct 16, 2023
1 parent c0b85a0 commit 6b40171
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@ objects:
from reservations r
join aws_reservation_details d on r.id = d.reservation_id
join accounts a on r.account_id = a.id
where provider = provider_type_aws()
order by r.created_at)
where provider = provider_type_aws())
union all
Expand All @@ -483,8 +482,27 @@ objects:
from reservations r
join azure_reservation_details d on r.id = d.reservation_id
join accounts a on r.account_id = a.id
where provider = provider_type_azure()
order by r.created_at);
where provider = provider_type_azure())
union all
(select 'gcp' as provider,
r.id,
r.created_at,
r.finished_at,
r.success,
r.status || ' (' || r.step || '/' || r.steps || ')' as status,
a.account_number,
a.org_id,
d.source_id,
d.image_id,
d.detail -> 'machine_type' as type,
d.detail -> 'amount' as amount,
d.detail -> 'launch_template_id' is not null as template
from reservations r
join gcp_reservation_details d on r.id = d.reservation_id
join accounts a on r.account_id = a.id
where provider = provider_type_gcp());
# possible application ENV variables are in config/api.env.example
Expand Down

0 comments on commit 6b40171

Please sign in to comment.