diff --git a/templates/backup.yaml b/templates/backup.yaml index 4d2d6bf..ffe660c 100644 --- a/templates/backup.yaml +++ b/templates/backup.yaml @@ -1,6 +1,6 @@ AWSTemplateFormatVersion: 2010-09-09 Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/budget.yaml b/templates/budget.yaml index d3259ac..ca081c9 100755 --- a/templates/budget.yaml +++ b/templates/budget.yaml @@ -3,7 +3,7 @@ Transform: AWS::Serverless-2016-10-31 Description: Sets up Budget pieces for account management. (qs-1s3rsr7io) Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/control-tower.yaml b/templates/control-tower.yaml index b7f80d1..141d9fc 100644 --- a/templates/control-tower.yaml +++ b/templates/control-tower.yaml @@ -219,7 +219,7 @@ Resources: Resource: !Sub 'arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:event-bus/default' Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/guardduty.yaml b/templates/guardduty.yaml index 7b4364a..49915db 100644 --- a/templates/guardduty.yaml +++ b/templates/guardduty.yaml @@ -301,7 +301,7 @@ Resources: AutoEnable: true Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/living-documentation.yaml b/templates/living-documentation.yaml index 47e5f65..3e4de0b 100755 --- a/templates/living-documentation.yaml +++ b/templates/living-documentation.yaml @@ -128,7 +128,7 @@ Resources: Timeout: 60 Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/notifications.yaml b/templates/notifications.yaml index 1a3aa09..a169f2b 100644 --- a/templates/notifications.yaml +++ b/templates/notifications.yaml @@ -57,9 +57,12 @@ Resources: client = boto3.client('sns') def handler(event, context): - id = event['detail']['responseElements']['opsItemId'] - desc = event['detail']['requestParameters']['description'] - title = event['detail']['requestParameters']['title'] + response_elements = event['detail']['responseElements'] + id = response_elements.get('OpsItemId', response_elements.get('opsItemId')) + request_parameters = event['detail']['requestParameters'] + desc = request_parameters.get('Description', request_parameters.get('description')) + title = request_parameters.get('Title', request_parameters.get('title')) + assert id and title and desc url = "https://${AWS::Region}.console.aws.amazon.com/systems-manager/opsitems/{}".format(id) diff --git a/templates/rootmail.yaml b/templates/rootmail.yaml index 6234461..560ac92 100644 --- a/templates/rootmail.yaml +++ b/templates/rootmail.yaml @@ -776,7 +776,7 @@ Resources: - !GetAtt StackSetExecutionRole.Arn Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/security-hub.yaml b/templates/security-hub.yaml index 4529ad2..02b9ec8 100644 --- a/templates/security-hub.yaml +++ b/templates/security-hub.yaml @@ -428,7 +428,7 @@ Resources: isEnd: true Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/service-control-policies.yaml b/templates/service-control-policies.yaml index 6df8154..d6ab4e7 100644 --- a/templates/service-control-policies.yaml +++ b/templates/service-control-policies.yaml @@ -313,7 +313,7 @@ Resources: raise Exception Metadata: - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 cfn-lint: config: ignore_checks: diff --git a/templates/superwerker.template.yaml b/templates/superwerker.template.yaml index cf0f081..59ac652 100644 --- a/templates/superwerker.template.yaml +++ b/templates/superwerker.template.yaml @@ -6,7 +6,7 @@ Metadata: config: ignore_checks: - E9007 - SuperwerkerVersion: 0.13.2 + SuperwerkerVersion: 0.14.0 QuickStartDocumentation: EntrypointName: "Parameters for launching Superwerker" Order: "1"