[aws-events] "Rule" support input roleArn
See original GitHub issueaws event L2 Rule support input exist roleArn
.
Use Case
see https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-events.CfnRule.html
can input roleArn
you want .
But L2 library Rule
do not support input exist roleArn
see https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-events.IRule.html
Proposed Solution
Wish Rule
can add Properties like role
to add exist role to Rule
.
const rule = new events.CfnRule(this, 'RdsExporterCfnRule', {
description: 'Export snapshots from GP RDS to S3 at 2:30 am every day',
name: 'exporter',
scheduleExpression: 'cron(30 2 * * ? *)',
roleArn: 'arn:aws:iam::012345678912:role/Exsit_Event_Role',
});
example for L2 Rule
add role properties
const rule = new events.Rule(this, 'RdsExporterRule', {
description: 'Export snapshots from GP RDS to S3 at 2:30 am every day',
ruleName: 'GP_exporter',
schedule: events.Schedule.expression('cron(30 2 * * ? *)'),
role: Exsit_Event_Role,
});
Other
- 👋 I may be able to implement this feature request
- ⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
AWS::Events::Rule - AWS CloudFormation
The following example creates a rule that notifies an Amazon Simple Notification Service topic if an AWS CloudTrail log entry contains a call...
Read more >AWS::Events::Rule Target - Amazon CloudFormation
Settings to enable you to provide custom input to a target based on certain event data. You can extract one or more key-value...
Read more >AWS Event Rule doesn't work - Stack Overflow
I don't think AWS::Events::Rule supports RoleArn as one of its properties. You may refer link here docs.aws.amazon.com/AWSCloudFormation/latest/ ...
Read more >aws_cloudwatch_event_target | Resources | hashicorp/aws
EventBridge was formerly known as CloudWatch Events. ... resource "aws_cloudwatch_event_target" "yada" { target_id = "Yada" rule ...
Read more >aws::cloudwatch-event-rule — Gyro 1.2.0 documentation
The IAM role arn that gives permission to invoke actions on the target resource. input: The input json text that triggers an action...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can also set the role arn on the actual
events.Target
.In the meantime you can override the rule’s rolearn with:
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.