Bug 1476283 - Documentation for setting up EC2 autorefresh is missing
Summary: Documentation for setting up EC2 autorefresh is missing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Documentation
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.4
Assignee: Dayle Parker
QA Contact: Suyog Sainkar
URL:
Whiteboard: ec2:ebs:refresh
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-28 13:53 UTC by Matouš Mojžíš
Modified: 2018-06-12 08:22 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-12 08:22:18 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Preview - Enabling AWS events (35.46 KB, text/html)
2018-06-04 08:46 UTC, Dayle Parker
no flags Details

Description Matouš Mojžíš 2017-07-28 13:53:47 UTC
Document URL: 

Section Number and Name: 

Describe the issue: 
Documentation for setting up CloudTrail and Cloudwatch for getting events in CFME is missing.
CloudTrail:
Create Trail
Some Trail name
Read/Write events All
Create a new S3 bucket

CloudWatch:
Events -> Rules
Event pattern:
{
  "source": [
    "aws.ec2"
  ],
  "detail-type": [
    "AWS API Call via CloudTrail"
  ],
  "detail": {
    "eventSource": [
      "ec2.amazonaws.com"
    ]
  }
}

And target:
Type: SNS Topic
Resource name: AWSConfig_topic
Input: Matched event

Suggestions for improvement: 

Additional information: 


Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information:

Comment 3 Dave Johnson 2017-08-24 23:10:46 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set it to Low/Low.

Comment 10 Andrew Dahms 2018-05-31 01:26:22 UTC
Assigning to Dayle for review.

Comment 12 Dayle Parker 2018-06-04 08:46:29 UTC
Created attachment 1447359 [details]
Preview - Enabling AWS events

Hi Matouš,

Thanks for the nice instructions. :) I managed to locate an Amazon instance to try the config on AWS; however I still have a few questions as I'm not very familiar with Amazon.

Could you please review the attached preview (html file), and let me know if it looks correct to you?

A few questions:
* Would you configure events (CloudTrail/CloudWatch) *after* configuring AWS Config notifications in this procedure? https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html-single/managing_providers/#enabling_aws_config_notifications

* When creating a Trail, should we select "Apply to all regions"? What does that impact?

* I've added a note about the SNS topic deletion in BZ1579771 at the end of this section. Is it important for the user to know this at the beginning of this section?

Thanks for your help,
Dayle

Comment 14 Matouš Mojžíš 2018-06-06 13:23:12 UTC
Hello Dayle,

there should be three cloudwatch rules - volumes, snapshots and the rest of ec2:
CloudWatch:
Events -> Rules
For EC2:
Event pattern:
{
  "detail-type": [
    "AWS API Call via CloudTrail"
  ],
  "detail": {
    "eventSource": [
      "ec2.amazonaws.com"
    ]
  }
}

For volumes:
{
  "source": [
    "aws.ec2"
  ],
  "detail-type": [
    "EBS Volume Notification"
  ]
}

For snapshots:
{
  "source": [
    "aws.ec2"
  ],
  "detail-type": [
    "EBS Snapshot Notification"
  ]
}


Targets are same for all these three rules:
And target:
Type: SNS Topic
Resource name: AWSConfig_topic
Input: Matched event

For the questions:
1) AWS Config notifications should be created first as user has to select SNS Topic target in CloudWatch rules.
2) It depends on the use case. If customer uses more regions in cfme then it can be applied to all regions. We are using this option in our environment as we use many regions but we had to configure only one cloudtrail.

I think the rest in the html page is accurate.


Note You need to log in before you can comment on or make changes to this bug.