Skip to content

Commit

Permalink
chore(deps): bumping the version of the cloudformation data collectio…
Browse files Browse the repository at this point in the history
…n stacks
  • Loading branch information
gambol99 committed Dec 4, 2024
1 parent babff5a commit 2aa0935
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## https://raw.githubusercontent.com/awslabs/cid-framework/main/data-collection/deploy/deploy-data-collection.yaml
#
AWSTemplateFormatVersion: "2010-09-09"
Description: CID Data Collection Stack v3.4.5
Description: CID Data Collection Stack v3.5.0
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand Down Expand Up @@ -38,6 +38,7 @@ Metadata:
- IncludeAWSFeedsModule
- IncludeLicenseManagerModule
- IncludeQuickSightModule
- IncludeServiceQuotasModule
ParameterLabels:
DestinationBucket:
default: "Destination S3 bucket prefix"
Expand Down Expand Up @@ -89,6 +90,8 @@ Metadata:
default: "Include AWS Health Events Module"
IncludeLicenseManagerModule:
default: "Include Marketplace Licensing Collection"
IncludeServiceQuotasModule:
default: "Include Service Quota Data Collection"
IncludeQuickSightModule:
default: "Include QuickSight User Collection Module"

Expand Down Expand Up @@ -265,6 +268,11 @@ Parameters:
Description: Collects Marketplace Licenses and Grants
AllowedValues: ["yes", "no"]
Default: "no"
IncludeServiceQuotasModule:
Type: String
Description: Collects AWS Service Quotas data
AllowedValues: ["yes", "no"]
Default: "no"

Conditions:
DeployTAModule: !Equals [!Ref IncludeTAModule, "yes"]
Expand All @@ -285,6 +293,7 @@ Conditions:
DeployHealthEventsModule: !Equals [!Ref IncludeHealthEventsModule, "yes"]
DeployLicenseManagerModule: !Equals [!Ref IncludeLicenseManagerModule, "yes"]
DeployQuickSightModule: !Equals [!Ref IncludeQuickSightModule, "yes"]
DeployServiceQuotasModule: !Equals [!Ref IncludeServiceQuotasModule, "yes"]
DeployPricingModule: !Or
- !Condition DeployInventoryCollectorModule
- !Condition DeployRDSUtilizationModule
Expand All @@ -306,6 +315,7 @@ Conditions:
- !Condition DeployHealthEventsModule
- !Condition DeployLicenseManagerModule
- !Condition DeployQuickSightModule
- !Condition DeployServiceQuotasModule
RegionsInScopeIsEmpty: !Equals
- !Join ["", !Split [" ", !Ref RegionsInScope]] # remove spaces
- ""
Expand Down Expand Up @@ -1354,6 +1364,37 @@ Resources:
StepFunctionExecutionRoleARN: !GetAtt StepFunctionExecutionRole.Arn
SchedulerExecutionRoleARN: !GetAtt SchedulerExecutionRole.Arn

ServiceQuotasModule:
Type: AWS::CloudFormation::Stack
Condition: DeployServiceQuotasModule
Properties:
TemplateURL: !Sub "https://${CFNSourceBucket}.s3.amazonaws.com/cfn/data-collection/module-service-quotas.yaml"
Parameters:
DatabaseName: !Ref DatabaseName
DestinationBucket: !Ref S3Bucket
DestinationBucketARN: !GetAtt S3Bucket.Arn
MultiAccountRoleName: !Sub "${ResourcePrefix}${MultiAccountRoleName}"
Schedule: !Ref ScheduleFrequent
GlueRoleARN: !GetAtt GlueRole.Arn
ResourcePrefix: !Ref ResourcePrefix
LambdaAnalyticsARN: !GetAtt LambdaAnalytics.Arn
AccountCollectorLambdaARN: !Sub "${AccountCollector.Outputs.LambdaFunctionARN}"
CodeBucket:
!If [
ProdCFNTemplateUsed,
!FindInMap [RegionMap, !Ref "AWS::Region", CodeBucket],
!Ref CFNSourceBucket,
]
StepFunctionTemplate:
!FindInMap [StepFunctionCode, main-v3, TemplatePath]
StepFunctionExecutionRoleARN: !GetAtt StepFunctionExecutionRole.Arn
SchedulerExecutionRoleARN: !GetAtt SchedulerExecutionRole.Arn
RegionsInScope:
Fn::If:
- RegionsInScopeIsEmpty
- !Sub "${AWS::Region}"
- !Join ["", !Split [" ", !Ref RegionsInScope]] # remove spaces

QuickSightModule:
Type: AWS::CloudFormation::Stack
Condition: DeployQuickSightModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## https://github.com/awslabs/cid-framework/blob/main/data-collection/deploy/deploy-data-read-permissions.yaml
#
AWSTemplateFormatVersion: "2010-09-09"
Description: CID Data Collection - All-in-One for Management Account v3.4.5
Description: CID Data Collection - All-in-One for Management Account v3.5.0
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand Down Expand Up @@ -32,6 +32,7 @@ Metadata:
- IncludeTAModule
- IncludeTransitGatewayModule
- IncludeLicenseManagerModule
- IncludeServiceQuotasModule
ParameterLabels:
ManagementAccountRole:
default: "Management account role"
Expand Down Expand Up @@ -73,6 +74,8 @@ Metadata:
default: "Include AWS Health Events Module"
IncludeLicenseManagerModule:
default: "Include Marketplace Licensing Module"
IncludeServiceQuotasModule:
default: "Include Service Quotas Module"
Parameters:
ManagementAccountRole:
Type: String
Expand Down Expand Up @@ -168,6 +171,11 @@ Parameters:
Description: Collects Marketplace Licensing information
AllowedValues: ["yes", "no"]
Default: "no"
IncludeServiceQuotasModule:
Type: String
Description: Collects Service Quotas information
AllowedValues: ["yes", "no"]
Default: "no"

Conditions:
DeployModuleReadInMgmt: !Equals [!Ref AllowModuleReadInMgmt, "yes"]
Expand All @@ -188,6 +196,7 @@ Resources:
IncludeBackupModule: !Ref IncludeBackupModule
IncludeHealthEventsModule: !Ref IncludeHealthEventsModule
IncludeLicenseManagerModule: !Ref IncludeLicenseManagerModule
IncludeServiceQuotasModule: !Ref IncludeServiceQuotasModule
DataCollectorMgmtAccountModulesReadStack:
Type: AWS::CloudFormation::Stack
Condition: DeployModuleReadInMgmt
Expand All @@ -204,10 +213,11 @@ Resources:
IncludeRDSUtilizationModule: !Ref IncludeRDSUtilizationModule
IncludeBudgetsModule: !Ref IncludeBudgetsModule
IncludeTransitGatewayModule: !Ref IncludeTransitGatewayModule
IncludeServiceQuotasModule: !Ref IncludeServiceQuotasModule
DataCollectorOrgAccountModulesReadStackSet:
Type: AWS::CloudFormation::StackSet
Properties:
Description: "StackSet in charge of deploying read roles across organization accounts v3.4.5"
Description: "StackSet in charge of deploying read roles across organization accounts v3.5.0"
PermissionModel: SERVICE_MANAGED
AutoDeployment:
Enabled: true
Expand Down Expand Up @@ -239,6 +249,8 @@ Resources:
ParameterValue: !Ref IncludeBudgetsModule
- ParameterKey: IncludeTransitGatewayModule
ParameterValue: !Ref IncludeTransitGatewayModule
- ParameterKey: IncludeServiceQuotasModule
ParameterValue: !Ref IncludeServiceQuotasModule
StackInstancesGroup:
- DeploymentTargets:
OrganizationalUnitIds: !Split [",", !Ref OrganizationalUnitIds]
Expand Down

0 comments on commit 2aa0935

Please sign in to comment.