Skip to content

Commit

Permalink
Add account-map database parameter to CFN
Browse files Browse the repository at this point in the history
  • Loading branch information
petrokashlikov committed Dec 3, 2024
1 parent cd7fdbd commit a89ba43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cfn-templates/cid-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ Parameters:
Description: 'Is DataCollectionRequired'
AllowedValues: ["yes", "no"]
Default: 'no'
RequiresAccountMapDatabase:
Type: String
Description: 'Is AccountMapDatabaseRequired'
AllowedValues: ["yes", "no"]
Default: 'no'

Conditions:
ResourcesUrlIsEmpty: !Equals [!Ref ResourcesUrl, '']
RequiresDataCollection: !Equals [!Ref RequiresDataCollection, 'yes']
RequiresDataExports: !Equals [!Ref RequiresDataExports, 'yes']
RequiresAccountMapDatabase: !Equals [!Ref RequiresAccountMapDatabase, 'yes']

Resources:
Dashboard:
Expand All @@ -36,6 +42,7 @@ Resources:
Dashboard:
dashboard-id: !Ref DashboardId
account-map-source: 'dummy'
account-map-database-name: !If [RequiresAccountMapDatabase, {'Fn::ImportValue': "cid-CidDatabase"}, !Ref 'AWS::NoValue']
data-collection-database-name: 'optimization_data'
resources: !If [ResourcesUrlIsEmpty, !Ref 'AWS::NoValue', !Ref ResourcesUrl]
data_exports_database_name: !If [RequiresDataExports, {'Fn::ImportValue': "cid-DataExports-Database"}, !Ref 'AWS::NoValue']
Expand Down

0 comments on commit a89ba43

Please sign in to comment.