Skip to content
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

Merged
merged 2 commits into from
Apr 24, 2018

Conversation

gheine
Copy link

@gheine gheine commented Apr 24, 2018

No description provided.

@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Apr 24, 2018
@bflad bflad added service/cloudwatchevents enhancement Requests to existing resources that expand the functionality or scope. labels Apr 24, 2018
@bflad bflad added this to the v1.16.0 milestone Apr 24, 2018
Copy link
Contributor

@bflad bflad left a 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 = [
Copy link
Contributor

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 👍

Copy link
Author

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 = [
Copy link
Contributor

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" {
Copy link
Contributor

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

Copy link
Author

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}"
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Apr 24, 2018
@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Apr 24, 2018
@bflad bflad removed the waiting-response Maintainers are waiting on response from community or contributor. label Apr 24, 2018
Copy link
Contributor

@bflad bflad left a 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)

@bflad bflad merged commit 7253c2a into hashicorp:master Apr 24, 2018
bflad added a commit that referenced this pull request Apr 24, 2018
@gheine gheine deleted the batch_event_target branch April 24, 2018 16:36
@bflad
Copy link
Contributor

bflad commented Apr 25, 2018

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.

@ghost
Copy link

ghost commented Apr 6, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. size/L Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants