Skip to content

Commit

Permalink
Add hostname in CLI driven workflow example (#836)
Browse files Browse the repository at this point in the history
* Add hostname in CLI driven workflow example
  • Loading branch information
alfespa17 committed May 5, 2024
1 parent ccdcb96 commit 8697400
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions ui/src/domain/Workspaces/CLIDriven.jsx
Expand Up @@ -36,6 +36,7 @@ export const CLIDriven = ({ organizationName, workspaceName }) => {
<pre className="moduleCode">
terraform {"{"} <br />
&nbsp;&nbsp;cloud {"{"} <br />
&nbsp;&nbsp;&nbsp;&nbsp;hostname = "{new URL(window._env_.REACT_APP_TERRAKUBE_API_URL).hostname}"<br/>
&nbsp;&nbsp;&nbsp;&nbsp;organization = "{organizationName}
" <br />
<br />
Expand All @@ -52,18 +53,19 @@ export const CLIDriven = ({ organizationName, workspaceName }) => {
label: "remote backend",
key: "2",
children: (
<pre className="moduleCode">
terraform {"{"} <br />
&nbsp;&nbsp;backend "remote" {"{"} <br />
&nbsp;&nbsp;&nbsp;&nbsp;organization = "{organizationName}
" <br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;workspaces {"{"} <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = "
{workspaceName}" <br />
&nbsp;&nbsp;&nbsp;&nbsp;{"}"} <br />
&nbsp;&nbsp;{"}"} <br />
{"}"} <br />
<pre className="moduleCode">
terraform {"{"} <br/>
&nbsp;&nbsp;backend "remote" {"{"} <br/>
&nbsp;&nbsp;&nbsp;&nbsp;hostname = "{new URL(window._env_.REACT_APP_TERRAKUBE_API_URL).hostname}"<br/>
&nbsp;&nbsp;&nbsp;&nbsp;organization = "{organizationName}
" <br/>
<br/>
&nbsp;&nbsp;&nbsp;&nbsp;workspaces {"{"} <br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = "
{workspaceName}" <br/>
&nbsp;&nbsp;&nbsp;&nbsp;{"}"} <br/>
&nbsp;&nbsp;{"}"} <br/>
{"}"} <br/>
</pre>
),
},
Expand Down

0 comments on commit 8697400

Please sign in to comment.