I'm trying to deploy an EventBridge rule in Terraform with the following cron expression:
schedule_expression = "cron (5 5 * * ? *)"
Trying to apply the plan however, throws
Error: error creating EventBridge Rule (dev-cron):
ValidationException: Parameter ScheduleExpression is not valid.
status code: 400, request id: xxx
I have tried a cron generator, followed AWS docs on crons, and tried different cros, all throwing the same error. What am I missing here?
It is a small mistake, but you would want to remove the space between cron and the opening parenthesis.
schedule_expression = "cron(5 5 * * ? *)"
Unfortunately, AWS throws a generic error message, like Parameter ScheduleExpression is not valid, without giving a clue what the actual error is.
Related
Azure Custom script execution failed, please help for fix.
"Error message: "Failed to download all specified files. Exiting. Error Message: invalid uri fileUri_{1}\r\ninvalid uri fileUri_{2}\r\ninvalid uri fileUri_{3}\r\n"\r\n\r\nMore information on troublesho"
Custom Script for windows :- Installing IIS service
import-module servermanager
add-windowsfeature web-server -includeallsubfeature
add-windowsfeature Web-asp-Net45
add-windowsfeature NET-framework-Features
Error :-
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'CustomScriptExtension'. Error message: "Failed to download all specified files. Exiting. Error Message: invalid uri fileUri_{1}\r\ninvalid uri fileUri_{2}\r\ninvalid uri fileUri_{3}\r\n"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "}]}
After further checking able to fix the issue as below.
Custom script name should be as per azure suggested, earlier I had given (under score, Capital Letter while naming the Storage Account, that is the main error.
Deployment Error :-
Before changing the Name Error naming :-
After the overwriting the Name as below format:-
Installed the Custom Extension Script , got installed as below.
I have created a pyspark script (glue job) and trying to run it through AWS CLI. In this command passing an argument name FILTER_CONDITION, the value of this argument is a date. When I tried to pass the date in a single quote (as mentioned in the below command) getting an error.
Command:
aws glue start-job-run --job-name myjob_test --arguments="--FILTER_CONDITION":"REPORT_DT=\'2019-01-01\'"
Error:
Error parsing parameter '--arguments': Expected: ',', received: ''' for
You need to escape quotes using back slash. I have used below command to start a Glue job with arguments and it ran fine with out any issues:
aws glue start-job-run --job-name test2 --arguments "{\"--FILTER_CONDITION\": \"REPORT_DT='2019-01-01'\"}"
Why isn't cron running every two minutes
I believe it should be:
schedules:
- cron: '0 0/2 * 1/1 * ? *'
displayName: success
branches:
include: master
always: true
When I use a cron generator to evaluate your cron string it errors which leads me to believe the issue is due to a bad cron string.
Here is the tool I used: cronmaker
Why isn't cron running every two minutes
The cron syntax */2 * * * * should be work.
I test it with github resource and your cron syntax:
And the result:
So, I can sure your cron syntax */2 * * * * is correct. We need to check other aspects, like:
Check the modification of schedules in the .yml file is synchronized to the github repo.
Create a new pipeline for the success.yml without any other settings.
If above not help you, you could try to create a pipeline for the Azure devops repo instead of the github rrpo with same cron syntax to check if you still have this issue, so that we could narrow the scope of this issue.
I'm newbie in using the Azure PowerShell, and I'm trying to import the AzurePublishSettingsFile using this command:
Import-AzurePublishSettingsFile C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings
I'm following these steps to configure the power shell where i found this error when i tried to execute the above command:
Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'G\Downloads\Visual'.
The whole error has been pasted here.
What could be the issue? Any help would be appreciated.
Please put the path to your publish settings file in double quotes.
Import-AzurePublishSettingsFile "C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings"
Because you have a space in the path, PowerShell Cmdlet is considering the path as two parameters C:\Users\Kulasangar and G\Downloads\<SubscriptionName>-credentials.publishsettings and hence the error.
I have installed cron_email addon but get this error message in the template
Error
The following tag has a syntax error:
{exp:cron}
Please correct the syntax in your template.
What is wrong?
As specified on the Cron Send Email page, "Requirements: ExpressionEngine Cron plugin". So make sure it is installed as well: http://expressionengine.com/downloads/details/expressionengine_cron