Skip to content

Commit

Permalink
Re-pin direct JSON links to GH repo
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Dec 19, 2024
1 parent cf1a6f2 commit 4dc99d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/aws.permissions.cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ async function processReferencePage() {
$('.managedpolicyraw').html(Prism.highlight(JSON.stringify(policy_data['document'], null, 4), Prism.languages.javascript, 'javascript'));
$('.managedpolicyname').html(managedpolicy['name']);
processManagedPolicy(policy_data, iam_def);
$('#managedpolicy-json-link').attr('href', 'https://aws.permissions.cloud/iam-dataset/aws/managedpolicies/' + managedpolicy['name'] + '.json');
$('#managedpolicy-json-link').attr('href', 'https://raw.githubusercontent.com/iann0036/iam-dataset/refs/heads/main/aws/managedpolicies/' + managedpolicy['name'] + '.json');
}
}

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
<h4 class="mg-b-0 tx-spacing--1">Permissions Reference for <span class='servicename'></span></h4>
</div>
<div class="d-none d-md-block">
<a id="permissions-json-link" href="https://aws.permissions.cloud/iam-dataset/aws/map.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
<a id="permissions-json-link" href="https://raw.githubusercontent.com/iann0036/iam-dataset/refs/heads/main/aws/map.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
<button class="btn btn-sm pd-x-15 btn-primary btn-uppercase mg-l-5 display-iam api-link" style="display: none;"><i data-feather="code" class="wd-10 mg-r-5"></i> Switch to API</button>
<button class="btn btn-sm pd-x-15 btn-primary btn-uppercase mg-l-5 display-api iam-link" style="display: none;"><i data-feather="lock" class="wd-10 mg-r-5"></i> Switch to IAM</button>
</div>
Expand Down Expand Up @@ -276,7 +276,7 @@ <h6 class="mg-b-10">Download the permissions in JSON format.</h6>
<h4 class="mg-b-0 tx-spacing--1">Permissions Reference for Tag <span class='tagname'></span></h4>
</div>
<div class="d-none d-md-block">
<a id="permissions-json-link" href="https://aws.permissions.cloud/iam-dataset/aws/map.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
<a id="permissions-json-link" href="https://raw.githubusercontent.com/iann0036/iam-dataset/refs/heads/main/aws/map.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
</div>
</div>

Expand Down Expand Up @@ -623,7 +623,7 @@ <h4 class="mg-b-10">Using API Methods</h4>
<h4 class="mg-b-0 tx-spacing--1">Managed Policies</h4>
</div>
<div class="d-none d-md-block">
<a href="https://aws.permissions.cloud/iam-dataset/aws/managed_policies.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
<a href="https://raw.githubusercontent.com/iann0036/iam-dataset/refs/heads/main/aws/managed_policies.json" target="_blank"><button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="download" class="wd-10 mg-r-5"></i> Download JSON</button></a>
</div>
</div>

Expand Down

0 comments on commit 4dc99d8

Please sign in to comment.