cloudmason 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -375,6 +375,21 @@ Resources:
375
375
  - dynamodb:UpdateItem
376
376
  Resource:
377
377
  - !GetAtt DynamoDBTable.Arn
378
+ - Effect: Allow
379
+ Action:
380
+ - cognito-idp:AdminCreateUser
381
+ - cognito-idp:AdminDeleteUser
382
+ - cognito-idp:AdminResetUserPassword
383
+ - cognito-idp:ListUsersInGroup
384
+ - cognito-idp:ListUsers
385
+ - cognito-idp:ListGroups
386
+ - cognito-idp:AdminRemoveUserFromGroup
387
+ - cognito-idp:AdminGetUser
388
+ - cognito-idp:AdminListGroupsForUser
389
+ - cognito-idp:CreateGroup
390
+ - cognito-idp:AdminAddUserToGroup
391
+ - cognito-idp:DeleteGroup
392
+ Resource: !Sub 'arn:aws:cognito-idp:${AWS::Region}:${AWS::AccountId}:userpool/${CognitoUserPool}'
378
393
  AppEc2Profile:
379
394
  Type: AWS::IAM::InstanceProfile
380
395
  Properties:
@@ -411,10 +426,4 @@ Resources:
411
426
  Properties:
412
427
  Name: !Sub '/${AWS::StackName}/version'
413
428
  Type: 'String'
414
- Value: !Ref AppVersion
415
- ParamEnvironment:
416
- Type: 'AWS::SSM::Parameter'
417
- Properties:
418
- Name: !Sub '/${AWS::StackName}/env'
419
- Type: 'String'
420
- Value: !Ref InstanceEnvironment
429
+ Value: !Ref AppVersion
package/main.js CHANGED
@@ -236,10 +236,12 @@ function parseArgs(){
236
236
  function printAllInfo(){
237
237
  Object.entries(Commands).forEach((c)=>{
238
238
  console.log(`| ${c[0]} ${c[1].desc}`)
239
- c[1].args.forEach(a=>{
240
- const argName = a.r ? `${a.n}*` : a.n;
241
- console.log(`\t-${argName}: ${a.desc}`)
242
- })
239
+ if (c[1].args){
240
+ c[1].args.forEach(a=>{
241
+ const argName = a.r ? `${a.n}*` : a.n;
242
+ console.log(`\t-${argName}: ${a.desc}`)
243
+ })
244
+ }
243
245
  console.log('-------\n');
244
246
  })
245
247
  console.log('\n*required')
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"cloudmason","version":"1.0.7","description":"","main":"main.js","scripts":{"build":"node build.js"},"bin":{"mason":"./main.js"},"repository":{"type":"git","url":"https://github.com/kai-harvey/secure-saas.git"},"author":"Kai Harvey","license":"ISC","dependencies":{"@aws-sdk/client-acm":"^3.418.0","@aws-sdk/client-auto-scaling":"^3.470.0","@aws-sdk/client-cloudformation":"^3.418.0","@aws-sdk/client-ec2":"^3.416.0","@aws-sdk/client-iam":"^3.418.0","@aws-sdk/client-route-53":"^3.425.0","@aws-sdk/client-s3":"^3.418.0","@aws-sdk/client-ssm":"^3.421.0","adm-zip":"^0.5.10"}}
1
+ {"name":"cloudmason","version":"1.0.9","description":"","main":"main.js","scripts":{"build":"node build.js"},"bin":{"mason":"./main.js"},"repository":{"type":"git","url":"https://github.com/kai-harvey/secure-saas.git"},"author":"Kai Harvey","license":"ISC","dependencies":{"@aws-sdk/client-acm":"^3.418.0","@aws-sdk/client-auto-scaling":"^3.470.0","@aws-sdk/client-cloudformation":"^3.418.0","@aws-sdk/client-ec2":"^3.416.0","@aws-sdk/client-iam":"^3.418.0","@aws-sdk/client-route-53":"^3.425.0","@aws-sdk/client-s3":"^3.418.0","@aws-sdk/client-ssm":"^3.421.0","adm-zip":"^0.5.10"}}
package/test.bat CHANGED
@@ -1,5 +1,5 @@
1
1
  @REM node main.js init-org -name orgTheorem -region us-west-2
2
- @REM node main.js list-apps
2
+ node main.js list-apps
3
3
  @REM node main.js new-app -name ot -type asg
4
4
  @REM node main.js new-instance -app ot -domain local.elmnts.xyz -region us-west-2 -admin kkh@kkh.io -env local
5
5
  @REM node main.js update-app -app ot -v 1.0 -path ./commands/starters/asg_node