Skip to content

[SVLS-8313] add guide on disabling cloudwatch logs#34509

Open
ava-silver wants to merge 7 commits intomasterfrom
ava.silver/svls-8313/add-guide-on-disabling-cloudwatch-logs
Open

[SVLS-8313] add guide on disabling cloudwatch logs#34509
ava-silver wants to merge 7 commits intomasterfrom
ava.silver/svls-8313/add-guide-on-disabling-cloudwatch-logs

Conversation

@ava-silver
Copy link
Contributor

@ava-silver ava-silver commented Feb 10, 2026

What does this PR do? What is the motivation?

Merge instructions

Merge readiness:

  • Ready for merge

For Datadog employees:

Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). Without this format, your pull request will not pass CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.

If your branch doesn't follow this format, rename it or create a new branch and PR.

[6/5/2025] Merge queue has been disabled on the documentation repo. If you have write access to the repo, the PR has been reviewed by a Documentation team member, and all of the required checks have passed, you can use the Squash and Merge button to merge the PR. If you don't have write access, or you need help, reach out in the #documentation channel in Slack.

Additional notes

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the Guide Content impacting a guide label Feb 10, 2026
@github-actions
Copy link
Contributor

@ava-silver ava-silver marked this pull request as ready for review February 13, 2026 20:47
@ava-silver ava-silver requested review from a team as code owners February 13, 2026 20:47
@ava-silver ava-silver force-pushed the ava.silver/svls-8313/add-guide-on-disabling-cloudwatch-logs branch from 11cfcb5 to 5891b54 Compare February 13, 2026 20:47
@ava-silver ava-silver requested review from a team and TalUsvyatsky February 13, 2026 20:48
@ava-silver ava-silver added the Do Not Merge Just do not merge this PR :) label Feb 13, 2026
@ava-silver
Copy link
Contributor Author

applying do not merge until we release the datadog-ci commands

],
});

denyCloudWatchLogsPolicy.attachToRole(fn.role!);

Choose a reason for hiding this comment

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

I would avoid shortening lambda function to fn, just because Fn is actually something different in cdk

new iam.PolicyStatement({
effect: iam.Effect.DENY,
actions: ["logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents"],
resources: [`arn:aws:logs:*:*:log-group:/aws/lambda/${fn.functionName}:*`],

Choose a reason for hiding this comment

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

We should sub in the log group here like you did in datadog-ci, here's where you can get it from in cdk, I imagine that each IaC tool has something similar

@@ -19,6 +19,7 @@ cascade:
{{< nextlink href="/serverless/guide/agent_configuration" >}}Agent Configuration{{< /nextlink >}}

Choose a reason for hiding this comment

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

As a general comment to this, should we support a disableCloudWatch flag on our IaC tools so they don't need to do this explicitly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking about this as well -- I think it's a good idea but I'd like to not block the UI changes on this, especially since this flow is targeting remote instrumentation users who aren't using these IaC tools, so this is just for temporary parity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Merge Just do not merge this PR :) Guide Content impacting a guide

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants