Skip to content

Commit 1c1492b

Browse files
[IT-4485] Update lambda-mips-api and deploy lambda-finops-floqast-sftp (#1456)
Update to latest version of lambda-mips-api to pull in the new /balances endpoint, and deploy lambda-finops-floqast-sftp to consume that endpoint on a daily basis and upload the result to FloQast via SFTP. This version of lambda-mips-api renames the parameter MipsOrganization -> MipOrganization to align with the name of the service. The new daily service runs at 8pm PDT (4am UTC)
1 parent 80e20c3 commit 1c1492b

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

org-formation/050-costs/_tasks.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AnomalyDetectorService:
1515
# Deploy a general-use microservice for interacting with MIPS in admincentral
1616
MipsMicroservice:
1717
Type: update-stacks
18-
Template: !Sub 'https://${AdminCentralCfnBucket}.s3.amazonaws.com/lambda-mips-api/1.2.2/lambda-mips-api.yaml'
18+
Template: !Sub 'https://${AdminCentralCfnBucket}.s3.amazonaws.com/lambda-mips-api/1.3.0/lambda-mips-api.yaml'
1919
StackName: !Sub '${resourcePrefix}-mips-microservice'
2020
DefaultOrganizationBinding:
2121
IncludeMasterAccount: false
@@ -24,7 +24,7 @@ MipsMicroservice:
2424
Parameters:
2525
AcmCertificateArn: !CopyValue [!Sub '${primaryRegion}-${resourcePrefix}-sageit-finops-cert-CertificateArn']
2626
DnsNames: "mips-api.finops.sageit.org"
27-
MipsOrganization: 'SAGE_24146'
27+
MipOrganization: 'SAGE_24146'
2828
SsmKeyAdminArns:
2929
- 'arn:aws:sts::745159704268:assumed-role/AWSReservedSSO_Administrator_30244677b3ea9498/joni.harker@sagebase.org'
3030
- !Sub 'arn:aws:iam::${CurrentAccount.AccountId}:root'
@@ -72,3 +72,22 @@ CostNotificationMicroservice:
7272
# Uncomment the following lines to disable user reports
7373
#RestrictRecipients: "True"
7474
#ApprovedRecipients: "it@sagebase.org"
75+
76+
# Deploy a microservice for retrieving balances from lambda-mips-api and uploading them to FloQast via SFTP
77+
# Run daily at 8pm PDT (4am UTC)
78+
FloQastSftpMicroservice:
79+
Type: update-stacks
80+
Template: !Sub 'https://${AdminCentralCfnBucket}.s3.amazonaws.com/lambda-finops-floqast-sftp/1.0.0/lambda-finops-floqast-sftp.yaml'
81+
StackName: !Sub '${resourcePrefix}-floqast-microservice'
82+
DefaultOrganizationBinding:
83+
IncludeMasterAccount: false
84+
Account: !Ref AdminCentralAccount
85+
Region: !Ref primaryRegion
86+
Parameters:
87+
Schedule: "cron(0 4 * * ? *)"
88+
PeriodCount: "13"
89+
SsmPrefix: "/lambda/floqast-sftp"
90+
KmsKeyAdminArns:
91+
- 'arn:aws:sts::745159704268:assumed-role/AWSReservedSSO_Administrator_30244677b3ea9498/joni.harker@sagebase.org'
92+
- !Sub 'arn:aws:iam::${CurrentAccount.AccountId}:root'
93+
- 'arn:aws:iam::745159704268:role/github-oidc-sage-bionetwo-ProviderRoleorganization-93H11ERK3F4N'

0 commit comments

Comments
 (0)