Skip to content

Commit

Permalink
fix some titles in cur deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Nov 8, 2023
1 parent ce5c15e commit c9f3deb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cfn-templates/cur-aggregation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ AWSTemplateFormatVersion: "2010-09-09"
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
-
-
Label:
default: "Common Parameters Configuration"
Parameters:
- DestinationAccountId
- ResourcePrefix
- CreateCUR
-
-
Label:
default: "Destination Account specific parameters (fill only on Destination Account)"
default: "Parameters needed in Destination (Data Collection) Account only"
Parameters:
- SourceAccountIds

ParameterLabels:
DestinationAccountId:
default: "Destination Account Id"
default: "Destination (Data Collection) Account Account Id"
ResourcePrefix:
default: "Prefix used for all named resources, including S3 Bucket"
default: "Prefix used for all named resources, including S3 Bucket. Must be the same in destination and source stacks"
SourceAccountIds:
default: "Source Account Ids"
default: "Source Account Ids (Comma separated list)"


Parameters:
Expand Down Expand Up @@ -112,7 +112,7 @@ Resources:
Rules:
- Id: Object&Version Expiration
Status: Enabled
NoncurrentVersionExpirationInDays: 32 # 1 month
NoncurrentVersionExpirationInDays: 32 # 1 month
Metadata:
cfn_nag:
rules_to_suppress:
Expand Down Expand Up @@ -204,7 +204,7 @@ Resources:
###########################################################################

####
# S3 Bucket with replication
# S3 Bucket with replication
####

SourceS3:
Expand Down Expand Up @@ -470,7 +470,7 @@ Resources:
Type: AWS::Lambda::Function
Condition: DeployCURViaLambda
Properties:
Runtime: python3.9
Runtime: python3.10
FunctionName:
Fn::Sub: ${ResourcePrefix}-CID-CURCreator
Handler: index.lambda_handler
Expand Down Expand Up @@ -629,7 +629,7 @@ Resources:
def register_deployment(action,dashboards):
message=f"Succesfully logged {action} for {dashboards}"
message=f"Successfully logged {action} for {dashboards}"
for dashboard_id in dashboards:
if action == 'CREATE':
message=execute_request('PUT',dashboard_id,'created_via')
Expand All @@ -638,8 +638,8 @@ Resources:
elif action == 'DELETE':
message=execute_request('DELETE',dashboard_id,'deleted_via')
if message is None:
message=f"Succesfully logged {action} for {dashboards} "
#Do not stop deployment if we're not able to succesfully record this deployment, still return true
message=f"Successfully logged {action} for {dashboards} "
#Do not stop deployment if we're not able to successfully record this deployment, still return true
return ("True",message)
Expand Down

0 comments on commit c9f3deb

Please sign in to comment.