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

Unable to create Kinesis Analytics application: InvalidArgumentException #7394

Closed
stephencoe opened this issue Jan 31, 2019 · 3 comments · Fixed by #7578
Closed

Unable to create Kinesis Analytics application: InvalidArgumentException #7394

stephencoe opened this issue Jan 31, 2019 · 3 comments · Fixed by #7578
Labels
bug Addresses a defect in current functionality. service/kinesisanalytics Issues and PRs that pertain to the kinesisanalytics service.
Milestone

Comments

@stephencoe
Copy link
Contributor

This is the same problem as listed in #7032 with the exception that it is being raised when a kinesis_firehose is used as an input.

Terraform Version

Terraform v0.11.11
+ provider.aws v1.56.0

Affected Resource(s)

  • aws_kinesis_analytics_application

Terraform Configuration Files

resource "aws_kinesis_firehose_delivery_stream" "firehose_stream" {
  name        = "${local.firehose_stream_name}"
  ..
}

data "aws_iam_policy_document" "kinesis_analytics" {
  statement {
    actions = [
      "firehose:DescribeDeliveryStream",
      "firehose:Get*",
    ]

    resources = [
      "${aws_kinesis_firehose_delivery_stream.firehose_stream.arn}"
    ]
  }
}

resource "aws_kinesis_analytics_application" "test" {
  name = "example"

  inputs {
    kinesis_firehose {
      resource_arn = "${aws_kinesis_firehose_delivery_stream.firehose_stream.arn}"
      role_arn     = "${module.kinesis_analytics_role.role_arn}"
    }
    ..
  }
}

Debug Output

aws_kinesis_analytics_application.logs: Unable to create Kinesis Analytics application: InvalidArgumentException: Kinesis Analytics doesn't have sufficient privileges to the Delivery Stream using assumed role. Please check the DeliveryStreamARN: 'arn:aws:firehose:eu-west-1:00000000:deliverystream/test_stream' and the roleARN: 'arn:aws:iam::00000000:role/kinesis_analytics_test'.

Expected Behavior

Creation without errors

Actual Behavior

Creation of Kinesis Application gets failed after the first execution. When I apply the same scripts second time - everyting gets created.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@nywilken nywilken added bug Addresses a defect in current functionality. service/kinesisanalytics Issues and PRs that pertain to the kinesisanalytics service. labels Feb 5, 2019
@bflad bflad added this to the v1.60.0 milestone Feb 22, 2019
@bflad
Copy link
Contributor

bflad commented Feb 22, 2019

The fix for this has been merged and will release with version 1.60.0 of the Terraform AWS Provider, shortly.

@bflad
Copy link
Contributor

bflad commented Feb 22, 2019

This has been released in version 1.60.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 Mar 31, 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 Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/kinesisanalytics Issues and PRs that pertain to the kinesisanalytics service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants