Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/0.6.0-cedar' into 0.6.0-cedar
Browse files Browse the repository at this point in the history
  • Loading branch information
independentid committed Dec 1, 2023
2 parents d90bfda + 269e2a7 commit 86a0968
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{- template "base" .}}
{{- define "main"}}
<div class="card">
{{- $m := index .Map "message"}}
{{- $provider := index .Map "provider"}}
<h1>Install Cloud Provider</h1>
<form name="integration" action="/integrations" method="post" enctype="multipart/form-data">
<input type="hidden" value="{{$provider}}" name="provider"/>
<h2 class="gcp-title">Amazon Verified Permissions - Cedar</h2>
<fieldset class="flex">
<p>
Add a AWS access keys by uploading your security credentials file.
</p>
<label class="file">Choose a security credentials file<input id="key-file" type="file" name="key"/>
</label>
<p id="key-file-name"></p>
</fieldset>

<input type="submit" value="Install AVP Provider" class="button"/>
{{- if $m}}
<div class="message">Something went wrong. {{$m}}</div>
{{- end }}
</form>
</div>
<div class="card">
<h2>Example integration file</h2>
<h3>hexa-amazon-web-services.json</h3>
<pre style="padding-left: 1rem"><code>{
"accessKeyID": "aws-access-key-id",
"secretAccessKey": "aws-secret-access-key",
"region": "aws-region"
}</code>
</pre>
</div>
{{- end}}

<script>
document.getElementById("key-file").addEventListener("change", (e) => {
document.getElementById("key-file-name").innerHTML = e.target.files[0].name
})
</script>

0 comments on commit 86a0968

Please sign in to comment.