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

[Enhancement]: Support secret manager as authentication source for Data Firehose #38210

Open
clementdenis opened this issue Jul 1, 2024 · 1 comment · May be fixed by #38245
Open

[Enhancement]: Support secret manager as authentication source for Data Firehose #38210

clementdenis opened this issue Jul 1, 2024 · 1 comment · May be fixed by #38245
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/firehose Issues and PRs that pertain to the firehose service.

Comments

@clementdenis
Copy link

clementdenis commented Jul 1, 2024

Description

Amazon Data Firehose recently added integration with AWS Secrets Manager for authentication, so aws_kinesis_firehose_delivery_stream should support this.

Affected Resource(s) and/or Data Source(s)

  • aws_kinesis_firehose_delivery_stream

Potential Terraform Configuration

resource "aws_kinesis_firehose_delivery_stream" "test_stream" {
  name        = "terraform-kinesis-firehose-test-stream"
  destination = "http_endpoint"

  # secret_manager_configuration block should be added to each destination type
  http_endpoint_configuration {
    url                = "https://aws-api.newrelic.com/firehose/v1"
    name               = "New Relic"

    # access_key         = "my-key"
    
    # Mutually exclusive with access_key
    secret_manager_configuration {
      secret_arn = var.api_key_secret_arn
      role_arn   = aws_iam_role.firehose_role.arn
    }

    buffering_size     = 15
    buffering_interval = 600
    role_arn           = aws_iam_role.firehose.arn
    s3_backup_mode     = "FailedDataOnly"

    s3_configuration {
      role_arn           = aws_iam_role.firehose.arn
      bucket_arn         = aws_s3_bucket.bucket.arn
      buffering_size     = 10
      buffering_interval = 400
      compression_format = "GZIP"
    }

    request_configuration {
      content_encoding = "GZIP"

      common_attributes {
        name  = "testname"
        value = "testvalue"
      }

      common_attributes {
        name  = "testname2"
        value = "testvalue2"
      }
    }
  }
}

References

Annoucement
Documentation

Relates #38210.

Would you like to implement a fix?

No

@clementdenis clementdenis added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/firehose Issues and PRs that pertain to the firehose service. label Jul 1, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 1, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jul 1, 2024
@nikhil-goenka nikhil-goenka linked a pull request Jul 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/firehose Issues and PRs that pertain to the firehose service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants