-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support kinesis and sqs config parameters in cloudwatch_event_target #4323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gheine! Can you please see the below?
partition_key_path = "$.detail" | ||
} | ||
|
||
depends_on = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The depends_on
here is unnecessary since we already have explicit dependencies above 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
message_group_id = "event_group" | ||
} | ||
|
||
depends_on = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The depends_on
here is unnecessary since we already have explicit dependencies above 👍
EOF | ||
} | ||
|
||
resource "aws_kinesis_stream" "kinesis_stream" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=== RUN TestAccAWSCloudWatchEventTarget_kinesis
--- FAIL: TestAccAWSCloudWatchEventTarget_kinesis (1.43s)
testing.go:518: Step 0 error: config is invalid: aws_kinesis_stream.kinesis_stream: "shard_count": required field is not set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
resource "aws_cloudwatch_event_target" "test" { | ||
arn = "${aws_sqs_queue.sqs_queue.arn}" | ||
rule = "${aws_cloudwatch_event_rule.cloudwatch_event_rule.id}" | ||
role_arn = "${aws_iam_role.iam_role.arn}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=== RUN TestAccAWSCloudWatchEventTarget_sqs
--- FAIL: TestAccAWSCloudWatchEventTarget_sqs (6.25s)
testing.go:518: Step 0 error: Error applying: 1 error(s) occurred:
* aws_cloudwatch_event_target.test: 1 error(s) occurred:
* aws_cloudwatch_event_target.test: Creating CloudWatch Event Target failed: ValidationException: RoleArn is not supported for target arn:aws:sqs:us-west-2:*******:tf_sqs_target-8308111253966277394.fifo.
status code: 400, request id: 80962ecf-47c7-11e8-ad07-1f66da1224ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, @gheine!
9 tests passed (all tests)
=== RUN TestAccAWSCloudWatchEventTarget_missingTargetId
--- PASS: TestAccAWSCloudWatchEventTarget_missingTargetId (7.04s)
=== RUN TestAccAWSCloudWatchEventTarget_sqs
--- PASS: TestAccAWSCloudWatchEventTarget_sqs (7.16s)
=== RUN TestAccAWSCloudWatchEventTarget_ecs
--- PASS: TestAccAWSCloudWatchEventTarget_ecs (10.53s)
=== RUN TestAccAWSCloudWatchEventTarget_ssmDocument
--- PASS: TestAccAWSCloudWatchEventTarget_ssmDocument (10.62s)
=== RUN TestAccAWSCloudWatchEventTarget_basic
--- PASS: TestAccAWSCloudWatchEventTarget_basic (12.19s)
=== RUN TestAccAWSCloudWatchEventTarget_input_transformer
--- PASS: TestAccAWSCloudWatchEventTarget_input_transformer (25.01s)
=== RUN TestAccAWSCloudWatchEventTarget_kinesis
--- PASS: TestAccAWSCloudWatchEventTarget_kinesis (76.17s)
=== RUN TestAccAWSCloudWatchEventTarget_full
--- PASS: TestAccAWSCloudWatchEventTarget_full (76.67s)
=== RUN TestAccAWSCloudWatchEventTarget_batch
--- PASS: TestAccAWSCloudWatchEventTarget_batch (79.35s)
This has been released in version 1.16.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
No description provided.