DopplerHQ / terraform-provider-doppler

Apache License 2.0
23 stars 9 forks source link

doppler_secrets_sync_github_actions #109

Open avivsalman opened 2 weeks ago

avivsalman commented 2 weeks ago

hello

i did not understand how to work with doppler_secrets_sync_github_actions resource, where can i find the integration variable, because when i am trying i got error message from terraform "integration not found".

avivsalman commented 2 weeks ago

Hello

I will refine my question, why is there no resource "doppler_integration_github_actions"

because now the only way to handle it is manual..

nmanoogian commented 2 weeks ago

Great question! The GitHub Actions integration must be connected via OAuth, which is why it can't be created via the API (or Terraform). The easiest way to manage GitHub Actions syncs is to connect the integration via the Doppler dashboard and then use the Integrations List endpoint to find the integration ID.

Here's a one-liner using your CLI token:

curl --request GET \
     --url https://api.doppler.com/v3/integrations \
     --header 'accept: application/json' \
     --header "Authorization: Bearer $(doppler configure get token --plain)"

You can provide that ID in the integration field for the doppler_secrets_sync_github_actions resource.