Skip to content

[WIP] Populate website ID to vercel with Terraform#3010

Draft
rmainwork wants to merge 9 commits into
mainfrom
rm/deploy-instana-rum-key-with-terraform
Draft

[WIP] Populate website ID to vercel with Terraform#3010
rmainwork wants to merge 9 commits into
mainfrom
rm/deploy-instana-rum-key-with-terraform

Conversation

@rmainwork

Copy link
Copy Markdown
Collaborator

Since this value is generated by Instana when the resource is created, we can use Terraform to populate it to Vercel dynamically

🗒️ What

Use Terraform to populate the auto generated website key from Instana to Vercel. That way we don't have to copy and paste it and keep the secret in sync.

This code was LLM generated and is (currently, at time of writing) untested. This PR serves as a POC/WIP and should not be merged/deployed without a proper review.

🤷 Why

Terraform is aware of this value and outputs it at the end of the run. We can have it populate the value into Vercel to keep Vercel in sync with the correct value. It doesn't change very often, so this shouldn't need ot be done regularly, but it's still nice to not have to worry about keeping the two in sync.

This does not currently replace DataDog entirely, but the intent is to
run them in parallel for an A/B comparison
We can't action exceptions from dependencies anyway, so it makes sense
to exclude them from monitoring entirely. This is currently being done
in DataDog alerts, but we can actually just not ingest them into Instana
at all and keep the clutter out.
It turns out that the produciton Instana does not support clickops
configuration. Therefore the configuration via Terraform has beend one
instead.
- Sensitive variables like production instana API token now live in HCP terraform backend
- All terraform and provider related code now extracted to terraform.tf to reduce clutter
This just helps to maintain a clean separation of concerns
The word "this" isn't a terribly useful name for what the resource is. Let's pick something better
This is a value that needs to be generated by Instana and is best populated by Terraform to the env vars in Vercel rather than being hard coded here.
In order to expose environment variables to client, they must be prefixed with `NEXT_PUBLIC_*` otherwise they will be redacted for safety reasons. In this instance, it's okay for this value to be public.
Since this value is generated by Instana when the resource is created,
we can use Terraform to populate it to Vercel dynamically
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-portal Ready Ready Preview, Comment Jun 15, 2026 7:12pm

Request Review

@github-actions

Copy link
Copy Markdown

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Base automatically changed from rm/add-instana-rum to main June 16, 2026 18:42
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.

1 participant