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

fix - tag missing for aws_kinesis_firehose_delivery_stream resource #195

Conversation

K-Nakul-K
Copy link
Contributor

@K-Nakul-K K-Nakul-K commented Dec 23, 2024

Description

LogDeliveryEnabled = true, Tag was missing for aws_kinesis_firehose_delivery_stream resource

Fixes #194

How Has This Been Tested?

Tested on my env. by running terraform apply multiple times.

Checklist:

  • I have updated the relevant example in the examples directory for the module.
  • I have updated the relevant test file for the module.
  • This change does not affect module (e.g. it's readme file change)

LogDeliveryEnabled = true
tag was missing for aws_kinesis_firehose_delivery_stream resource
@K-Nakul-K K-Nakul-K requested a review from a team as a code owner December 23, 2024 13:25
@CLAassistant
Copy link

CLAassistant commented Dec 23, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ K-Nakul-K
❌ Nakul Khargonkar


Nakul Khargonkar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@cazorla19
Copy link
Contributor

please update the CHANGELOG.md with this change as a bug fix, otherwise the change itself lgtm

@K-Nakul-K
Copy link
Contributor Author

please update the CHANGELOG.md with this change as a bug fix, otherwise the change itself lgtm

Done.

@ryantanjunming
Copy link
Contributor

Hi @K-Nakul-K , can i have some documentation on this LogDeliveryEnabled = true being added on for aws_kinesis_firehose_delivery_stream?

I only see https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html which looks more like a resource policy

@K-Nakul-K
Copy link
Contributor Author

K-Nakul-K commented Dec 24, 2024

Hi @K-Nakul-K , can i have some documentation on this LogDeliveryEnabled = true being added on for aws_kinesis_firehose_delivery_stream?

I only see https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html which looks more like a resource policy
Hi Ryan Tan,

In the same link that you were looking please find The Firehose stream must have the tag LogDeliveryEnabled set to true.

Also find screenshot for the same.
image

@ryantanjunming
Copy link
Contributor

@K-Nakul-K Is this change policy also required for firehose_iam role?

{ "Version": "2012-10-17", "Statement": [ { "Action": [ "firehose:PutRecord", "firehose:PutRecordBatch", "firehose:ListTagsForDeliveryStream" ], "Resource": "*", "Condition": { "StringEquals": { "aws:ResourceTag/LogDeliveryEnabled": "true" } }, "Effect": "Allow" } ] }

@ryantanjunming
Copy link
Contributor

@K-Nakul-K pls sign the Contributor License Agreement

@K-Nakul-K
Copy link
Contributor Author

@K-Nakul-K Is this change policy also required for firehose_iam role?

{ "Version": "2012-10-17", "Statement": [ { "Action": [ "firehose:PutRecord", "firehose:PutRecordBatch", "firehose:ListTagsForDeliveryStream" ], "Resource": "*", "Condition": { "StringEquals": { "aws:ResourceTag/LogDeliveryEnabled": "true" } }, "Effect": "Allow" } ] }

My use case is deliver of logs from AWS Network firewall to firehose which uses V1 permission (as per documentation)
image

and AWSServiceRoleForLogDeliveryPolicy role is already created by AWS. This service-linked role grants permission for all Firehose delivery streams that have the LogDeliveryEnabled tag set to true.
image

So short answer not required. :)

@K-Nakul-K
Copy link
Contributor Author

K-Nakul-K commented Dec 24, 2024

@K-Nakul-K pls sign the Contributor License Agreement

K-Nakul-K is my public id, from which I already signed the Contributor License Agreement. Where are username that you see is my org. laptop, not sure if I could really sign from that contributor name. If there any workaround for this? Sorry being stupid, I am new to public contributions.

@ryantanjunming
Copy link
Contributor

@K-Nakul-K I copied over your PR since the contributor license cant be signed by the org laptop one.
I'll see to it getting merged, thanks for the help

#197

@K-Nakul-K
Copy link
Contributor Author

@ryantanjunming Thank You! :)

@K-Nakul-K K-Nakul-K deleted the fix/nakul/kdf-delivery-stream-missing-tag branch January 13, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firehose-logs: LogDeliveryEnabled tag missing for aws_kinesis_firehose_delivery_stream resource
4 participants