Code Monkey home page Code Monkey logo

amazon-cloudwatch-events-user-guide's Introduction

amazon-cloudwatch-events-user-guide's People

Contributors

abonacin avatar chrisdr avatar joshbean avatar matthurne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-cloudwatch-events-user-guide's Issues

Cloudformation for codepipeline release by cloudwatch events

I found an article from 2017 saying that cloudwatch events now support codepipeline. How do I trigger a codepipeline once a day via cloudformation?

I thought it might look something like this, but I can't find any cloudformation examples regarding a scheduled trigger of a pipeline. I do also use webhooks to trigger my pipeline but I need to also run it once a day to update static pages with new data.

  EventRule:
    Type: AWS::Events::Rule
    Properties:
      ScheduleExpression: rate(1 day)
      Targets:
        - Arn: !GetAtt Pipeline.Arn
          Id: id-here

  Pipeline:
    Type: AWS::CodePipeline::Pipeline
    ...

How to define input path when there is a space?

Hi,

I want to pass Limit Amount and Current Usage as variables into an SNS topic.

Can this be done?

Below is a CloudWatch event from Trusted Advisor that contains these values I want to transform into human readable output:

{
  "version":"0",
  "id":"eda2dd4a-81df-d688-5f19-ef642ad7b486",
  "detail-type":"Trusted Advisor Check Item Refresh Notification",
  "source":"aws.trustedadvisor",
  "account":"929292782238",
  "time":"2018-07-10T01:06:15Z",
  "region":"us-east-1",
  "resources":[],
  "detail":{
    "check-name":"VPC Network Interfaces",
    "check-item-detail":{
        "Status":"Red",
        "Current Usage":"5",
        "Limit Name":"VPCs",
        "Region":"us-west-2",
        "Service":"VPC",
        "Limit Amount":"5"},
      "status":"ERROR",
      "resource_id":"",
      "uuid":"9ae2b76d-2a13-4174-9bd1-b8acfc381767"
  }
}

I have tried the following Input Path but get an invalid input path error:

{"service" : "$.detail.Service", "usage" : "$.detail.check-item-detail.Current Usage", "limit_amount" : "$.detail.Limit Amount"}

CloudWatch SSM target paramaters

Can the documentation for CWE --> SSM please be updated to include/explain that parameters in SSM automation documents should be in arrays. The current docs only provide an example of constants and API Reference docs, don't help either.
https://docs.aws.amazon.com/AmazonCloudWatchEvents/latest/APIReference/API_InputTransformer.html

For example the "AWS-EnableS3BucketEncryption" I've got it as follows in order for it to work:

~$ aws events list-targets-by-rule --rule ssm-testing
{
	"Targets": [
        {
			"RoleArn": "arn:aws:iam::12345678910:role/service-role/AWS_Events_Invoke_Start_Automation_Execution_338634571",
			"Id": "Id543190923011810",
			"Arn": "arn:aws:ssm:eu-west-1::automation-definition/AWS-EnableS3BucketEncryption:$DEFAULT",
			"InputTransformer": {
				"InputPathsMap": {
					"CustomInputBucketName": "$.detail.resourceId"
				},
				"InputTemplate": {
					"AutomationAssumeRole": ["arn:aws:iam::12345678910:role/AWS_SSMAutomationServiceRole"],
					"BucketName": [<CustomInputBucketName>],
					"SSEAlgorithm": ["AES256"]
				}
			}
		}
	]
}

Glue Data Catalog Database State Change Possible Values Wrong

The possible values for Glue Data Catalog Database State Change are wrong in the docs.

The docs list only CreateTable, UpdateTable, and CreateDatabase as possible values.
image

The actual possible values, according to these docs, are CreateDatabase, DeleteDatabase, CreateTable, DeleteTable and BatchDeleteTable. UpdateTable is not a possible value.
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.