Skip to main content

Amazon EventBridge - Resource-based Policies and Lambda

Refer AWS Documentation here


When a rule runs in EventBridge, all of the targets associated with the rule are invoked. 

Rules can invoke AWS Lambda functions, publish to Amazon SNS topics or relay the event to Kinesis streams. To make API calls against the resources you own, EventBridge needs appropriate permissions.


EventBridge uses Resource-based policies for:

1. Lambda

2. Amazon SNS

3. Amazon SQS

4. Amazon CloudWatch Logs 


EventBridge uses Identity-based policies for:

Kinesis streams


 AWS Lambda Permissions will look something like below:

{

  "Effect": "Allow",

  "Action": "lambda:InvokeFunction",

  "Resource": "arn:aws:lambda:region:account-id:function:function-name",

  "Principal": {

    "Service": "events.amazonaws.com"

  },

  "Condition": {

    "ArnLike": {

      "AWS:SourceArn": "arn:aws:events:region:account-id:rule/rule-name"

    }

  },

  "Sid": "InvokeLambdaFunction"

}

Comments

  1. Amazon EventBridge is an AWS event-routing service where rules can invoke targets such as Lambda functions, Amazon SNS topics, Kinesis streams, and other AWS resources. The article explains that EventBridge requires appropriate permissions when making API calls against resources owned by the user. Its use of resource-based policies for Lambda, SNS, SQS, and CloudWatch Logs makes permission configuration an important part of an event-driven cloud architecture.

    The discussion of EventBridge rules, Lambda invocation, and resource-based permissions is directly relevant to Cloud Computing Projects for Final Year. The article specifically describes how an EventBridge rule can invoke a Lambda function and shows the structure of a Lambda permission policy containing the lambda:InvokeFunction action and the function resource ARN.

    ReplyDelete

Post a Comment

Popular posts from this blog

Alibaba Cloud Networking Services List

Virtual Private Cloud - Isolated tenant containing IP address range, network segment, route tables and gateway. NAT Gateway - Allows Alibaba ECS instances to be source NAT'd with public IP to communicate on Internet. Cloud Enterprise Network VPN Gateway Express Connect Smart Access Gateway Alibaba Cloud PrivateZone PrivateLink Network Intelligence Services (NIS) Global Traffic Manager CDN and Edge Alibaba Cloud CDN Secure Content Delivery Dynamic CDN Edge Node Service (ENS) Global Accelerator

MITRE ATT&CK - Kerberos Vulnerabilities and Security

From the previous post, the summary of Kerberos authentication process is as below: For the initial authentication, the user’s client machine sends a request to the KDC  Authentication Service (AS) . The request includes details like the user’s username, and the date and time. All information except the username is encrypted using the hash of the user’s password. The KDC AS uses the username to look up its copy of the user’s password hash and uses it to decrypt the rest of the request. If the decryption is successful, that means the client used the correct password hash and the user has successfully authenticated. Once the user is authenticated, the KDC AS sends the user’s client a  ticket granting ticket   (TGT) . The TGT includes a unique session key and a timestamp that specifies how long that session is valid (normally 8 or 10 hours). Importantly, before sending the TGT, the KDC encrypts it using the password hash for a special account, the  KRBTGT account. ...

Checkpoint - Exporting Objects in CSV format

Be it a Network Operations Manager, Security Architect or a Security Auditor, the people up the hierarchy always harangue the Security Engineers to compile the list of firewall objects or rules or policies or the traffic statistics and so on.. This can turn out to be quite hectic especially if there are no built in features to systematically provide the output in a "layman-readable" format. Come, Checkpoint's "Object Explorer..."  which not only provides the output in the "layman-readable" format, but also provides in-built filtering mechanisms, thereby ensuring that the Security Engineer doesn't have to rely on Google for building his scarce Microsoft Excel data filtering skills. The following screenshots will show how easy it is, with Checkpoint R80.10 to generate the firewall configuration inventory. On the SmartConsole Unified Portal, navigate to Menu >> Open Object Explorer... Select the Categories you wish to see in your output: Click o...