Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to declare CloudWatch Output for AWS-RunPatchBaselineWithHooks #139

Open
rileysea opened this issue Jul 8, 2021 · 0 comments
Open

Comments

@rileysea
Copy link

rileysea commented Jul 8, 2021

Hello,

I am trying to deploy an L1 construct in the CDK (CfnMaintenanceWindowTask). However, the CloudFormation resource is not allowing me to declare the CloudWatchOutputConfig options for the task, which is sending a run command AWS-RunPatchBaselineWithHooks.

Where am I supposed to declare this? Under Parameters is where I receive an error when the stack is deployed.

Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of START_OBJECT token at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.amazonaws.services.ssm.model.UpdateMaintenanceWindowTaskRequest["TaskInvocationParameters"]->com.amazonaws.services.ssm.model.MaintenanceWindowTaskInvocationParameters["MaintenanceWindowRunCommandParameters"]->com.amazonaws.services.ssm.model.MaintenanceWindowRunCommandParameters["Parameters"]->java.util.LinkedHashMap["Parameters"])

References:
https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_CloudWatchOutputConfig.html
https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaselinewithhooks.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ssm.CfnMaintenanceWindowTask.MaintenanceWindowRunCommandParametersProperty.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant