HPE Morpheus Enterprise Software
1856404 Members
6943 Online
104112 Solutions
New Discussion

Re: Terraform azure authentication

 
SOLVED
Go to solution
Not applicable

Terraform azure authentication

Hello,
I’m planning to create terraform spec templates, for creating VM in azure.
What is the best way to “feed” terraform with these credentials. Can you help me ?

regards,
Matthieu

5 REPLIES 5
Ollie-Phillips
HPE Pro

Re: Terraform azure authentication

Hi, as well as Morpheus vars and custom options you can also access Cypher within Terraform spec templates to read at point of execution.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Not applicable

Re: Terraform azure authentication

didn’t see that :slight_smile: Thank you

cbunge
HPE Pro

Re: Terraform azure authentication

To add to Ollie’s note, there are a few ways to put a tfvars file.

The easiest is navigating to the cloud, and selecting the Profiles tab. Here you can add a cloud specific tfvars.

30d23bec2b471bac95bfda69ae2e086ec88973b2.png

The other way is just creating the tfvars secret type and referencing this at time of deployment.

f26105e3e0c3e076b4621e8fbab6c9ffa4c4af49.png

Not applicable

Re: Terraform azure authentication

Thank you so much for your answers. I was planning to use cyphers. Can we use the functionnalities you ar mentionning @cbunge, with spec templates ?

rbmorph
HPE Pro
Solution

Re: Terraform azure authentication

Hi @Matthieu - Yes you can use these with a spec template by adding them to either the layout
4d2fbc16bb912070812be1bdfe539a110ae493e4.png

or at the cloud level using a tfvars Cloud profile.

https://docs.morpheusdata.com/en/latest/infrastructure/clouds/profiles.html