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

Add example for provider config terraform for Azure #208

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

jankaacc
Copy link
Contributor

@jankaacc jankaacc commented Nov 2, 2023

Description of your changes

Added example for initializing provider terraform for azure
tfvars file is used to do that

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

image

@Upbound-CLA
Copy link

Upbound-CLA commented Nov 2, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@bobh66 bobh66 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Would it make sense to include a copy of the azure-creds Secret so the format is clear? It's not immediately obvious to me where the values for subscriptionId/tenantId/clientId/clientSecret come from - I assume they are in the azure-secret?

name: azure-westeurope
spec:
credentials:
- filename: terraform.tfvars.json
Copy link
Member

Choose a reason for hiding this comment

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

this is pretty cool trick, worth highlighting it with the comment :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

had it at the beginning :) will add this

@jankaacc
Copy link
Contributor Author

jankaacc commented Nov 2, 2023

ediately obvious to me where the values for subscriptionId/tenantId/clientId/clientSecret come from - I assume they are in the azure-secret?

agree, will add this secret above the providerConfig

@jankaacc
Copy link
Contributor Author

jankaacc commented Nov 2, 2023

updated

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

@jankaacc Great example, thanks a lot for the contribution 👍

@ytsarev
Copy link
Member

ytsarev commented Nov 4, 2023

@jankaacc can you please sign the CLA before we merge this one?

@ytsarev ytsarev merged commit e74e50b into upbound:main Nov 14, 2023
9 checks passed
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.

4 participants