Skip to content

Commit

Permalink
removing sam connectors support
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Apr 26, 2023
1 parent 7170eea commit 162f865
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mhlabs/iam-policies-cli",
"version": "1.0.5",
"version": "1.0.6",
"description": "A CLI tool for building simple to complex IAM policies",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/input-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ async function selectActions(selectedService, samResources) {
console.log("Please select at least one action");
exit = false;
}
if (actions.length > 1 && actions.filter((p) => p.Definition).length) {
// eslint-disable-next-line no-constant-condition
if (false && actions.length > 1 && actions.filter((p) => p.Definition).length) {
console.log(
"You can only choose one policy template and you can't mix policy templates and actions"
);
Expand Down
2 changes: 2 additions & 0 deletions src/template-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ function merge(template, resource) {

function getConnectableResources(template) {
const resources = [];
return resources; // temporarily disabled
// eslint-disable-next-line no-unreachable
for (const resource in template.Resources) {
if (Object.keys(connectors).includes(template.Resources[resource].Type)) {
resources.push({
Expand Down

0 comments on commit 162f865

Please sign in to comment.