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

Allow use of DdApiKeySecretArn instead of DDApiKey #30

Closed
andyshinn opened this issue Oct 27, 2021 · 4 comments
Closed

Allow use of DdApiKeySecretArn instead of DDApiKey #30

andyshinn opened this issue Oct 27, 2021 · 4 comments
Assignees

Comments

@andyshinn
Copy link

andyshinn commented Oct 27, 2021

Expected Behavior

Able to use DdApiKeySecretArn so when Datadog integration is setup via Terraform the plan is idempotent.

Actual Behavior

Only DdApiKey is available to pass to log forwarder.

Related

@duncanista
Copy link
Contributor

Hey @andyshinn
Thank you for raising the issue, sorry for the delay.

It seems that DdApiKeySecretArn is already supported in the template.
If you are creating a new one you can just set a default value in DdApiKey and then set your resource ARN in DdApiKeySecretArn (since the first one will be ignored if the second is set).

If you are trying to update an existing forwarder, you can just point to the Secret's ARN, since setting DdApiKey would have created a resource in Secrets Manager to it. If this is the case, then read permissions to the new resource might be required.

Let me know if you are still having trouble with this.

@andyshinn
Copy link
Author

I did not try, yet. But was looking at https://github.com/DataDog/cloudformation-template/blob/master/aws/main.yaml#L111-L118 and it didn't appear to set the DdApiKeySecretArn input for the forwarder. But I will give it a try.

@duncanista
Copy link
Contributor

Ah, I see what is happening here. Sorry, I got confused because of the reference and was checking the support there.

Indeed there is no support to set a custom DdApiKeySecretArn in the AWS integration with CloudFormation. If you want to create a forwarder with it you can follow the documentation for the forwarder stated here.

Nonetheless, this should be supported directly in the template you pointed. Will work on it, thank you.

@shughes-uk
Copy link

Can I request the same support for the streams template?

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

No branches or pull requests

3 participants