@mtndev/cli 0.0.0-dev-20260626045346 → 0.0.0-dev-20260914234436
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.
- package/CHANGELOG.md +86 -1
- package/cjs/__chunks/2FSYDFUV.cjs +146 -0
- package/cjs/__chunks/3A5ZYU5M.cjs +105 -0
- package/cjs/__chunks/3NOHGUCF.cjs +9 -0
- package/cjs/__chunks/3T2LXW7J.cjs +387 -0
- package/cjs/__chunks/4XT5JEAS.cjs +1 -0
- package/cjs/__chunks/AZEB4H4I.cjs +208 -0
- package/cjs/__chunks/B5ENMOCD.cjs +288 -0
- package/cjs/__chunks/B6XM5KSF.cjs +338 -0
- package/cjs/__chunks/BDU2UCE5.cjs +1 -0
- package/cjs/__chunks/BLMSMR5E.cjs +46 -0
- package/cjs/__chunks/CMUD7LLN.cjs +47 -0
- package/cjs/__chunks/DTQ2LB3I.cjs +49 -0
- package/cjs/__chunks/FM5MVRQF.cjs +23 -0
- package/cjs/__chunks/FRHST54J.cjs +135 -0
- package/cjs/__chunks/FU4VP2LN.cjs +1 -0
- package/cjs/__chunks/G5K4PVIL.cjs +26 -0
- package/cjs/__chunks/{NSRFG4DF.cjs → GU3R54MK.cjs} +45 -18
- package/cjs/__chunks/GUL36IFZ.cjs +61 -0
- package/cjs/__chunks/GZMTNK5N.cjs +1 -0
- package/cjs/__chunks/H74JSDBU.cjs +30 -0
- package/cjs/__chunks/{EMMC33QA.cjs → JB7T7PKQ.cjs} +170 -33
- package/cjs/__chunks/JSL2JDMW.cjs +1 -0
- package/cjs/__chunks/K4QNHRTP.cjs +163 -0
- package/cjs/__chunks/KU76LC42.cjs +192 -0
- package/cjs/__chunks/LFDSHANP.cjs +34 -0
- package/cjs/__chunks/LHE24ECK.cjs +192 -0
- package/cjs/__chunks/LIKQ3SI4.cjs +1 -0
- package/cjs/__chunks/LXDF5QVZ.cjs +313 -0
- package/cjs/__chunks/LXOOJR2R.cjs +74 -0
- package/cjs/__chunks/N5MXFOQZ.cjs +167 -0
- package/cjs/__chunks/N7D56LPP.cjs +25 -0
- package/cjs/__chunks/NFXQNOQH.cjs +393 -0
- package/cjs/__chunks/NLKJIUEX.cjs +126 -0
- package/cjs/__chunks/NT2XXAI6.cjs +89 -0
- package/cjs/__chunks/NWZGFHKH.cjs +121 -0
- package/cjs/__chunks/R3GUC7O7.cjs +110 -0
- package/cjs/__chunks/RPVAXPJ4.cjs +1 -0
- package/cjs/__chunks/S3LVCWPN.cjs +23 -0
- package/cjs/__chunks/SBBNW2BF.cjs +249 -0
- package/cjs/__chunks/T2A7TN4F.cjs +81 -0
- package/cjs/__chunks/TKNNDDIB.cjs +97 -0
- package/cjs/__chunks/TNSRDJPR.cjs +1 -0
- package/cjs/__chunks/UWHPE2GI.cjs +20 -0
- package/cjs/__chunks/W6K7BV74.cjs +1 -0
- package/cjs/__chunks/WBOQ6AUN.cjs +320 -0
- package/cjs/__chunks/WHGN5PZI.cjs +299 -0
- package/cjs/__chunks/WOYF2L6T.cjs +11 -0
- package/cjs/__chunks/X26XY2N6.cjs +18 -0
- package/cjs/__chunks/XMKOKRXZ.cjs +16 -0
- package/cjs/__chunks/XTJPQ3EX.cjs +1 -0
- package/cjs/__chunks/YRHFKTW2.cjs +63 -0
- package/cjs/commands/aws/ec2/allow-ip/handler.cjs +12 -0
- package/cjs/commands/aws/ec2/allow-ip/handler.d.ts +6 -0
- package/cjs/commands/aws/ec2/allow-ip/index.cjs +55 -0
- package/cjs/commands/aws/ec2/allow-ip/index.d.ts +3 -0
- package/cjs/commands/aws/ec2/allow-ip/schema.cjs +13 -0
- package/cjs/commands/aws/ec2/allow-ip/schema.d.ts +33 -0
- package/cjs/commands/aws/ec2/allow-ip/utils.cjs +39 -0
- package/cjs/commands/aws/ec2/allow-ip/utils.d.ts +189 -0
- package/cjs/commands/aws/iam/admin-group.cjs +15 -0
- package/cjs/commands/aws/iam/admin-group.d.ts +55 -0
- package/cjs/commands/aws/iam/break-glass/handler.cjs +12 -0
- package/cjs/commands/aws/iam/break-glass/handler.d.ts +7 -0
- package/cjs/commands/aws/iam/break-glass/index.cjs +19 -0
- package/cjs/commands/aws/iam/break-glass/index.d.ts +2 -0
- package/cjs/commands/aws/iam/break-glass/schema.cjs +12 -0
- package/cjs/commands/aws/iam/break-glass/schema.d.ts +25 -0
- package/cjs/commands/aws/iam/check-admin/handler.cjs +10 -0
- package/cjs/commands/aws/iam/check-admin/handler.d.ts +5 -0
- package/cjs/commands/aws/iam/check-admin/index.cjs +17 -0
- package/cjs/commands/aws/iam/check-admin/index.d.ts +2 -0
- package/cjs/commands/aws/iam/check-admin/schema.cjs +12 -0
- package/cjs/commands/aws/iam/check-admin/schema.d.ts +19 -0
- package/cjs/commands/aws/iam/policies/s3-restrictions-deny-non-s3-services.cjs +28 -0
- package/cjs/commands/aws/iam/policies/sts-federation.cjs +19 -0
- package/cjs/commands/aws/iam/policies/user-admins-deny-list.cjs +183 -0
- package/cjs/commands/aws/iam/policies/user-admins-deny-regions-list.cjs +49 -0
- package/cjs/commands/aws/iam/policies/user-admins-self-service-iam.cjs +64 -0
- package/cjs/commands/aws/iam/policies/user-admins-write-list.cjs +125 -0
- package/cjs/commands/aws/iam/remove-admin/handler.cjs +11 -0
- package/cjs/commands/aws/iam/remove-admin/handler.d.ts +6 -0
- package/cjs/commands/aws/iam/remove-admin/index.cjs +18 -0
- package/cjs/commands/aws/iam/remove-admin/index.d.ts +2 -0
- package/cjs/commands/aws/iam/remove-admin/schema.cjs +12 -0
- package/cjs/commands/aws/iam/remove-admin/schema.d.ts +28 -0
- package/cjs/commands/aws/iam/setup-acl/handler.cjs +14 -0
- package/cjs/commands/aws/iam/setup-acl/handler.d.ts +6 -0
- package/cjs/commands/aws/iam/setup-acl/index.cjs +33 -0
- package/cjs/commands/aws/iam/setup-acl/index.d.ts +3 -0
- package/cjs/commands/aws/iam/setup-acl/schema.cjs +7 -0
- package/cjs/commands/aws/iam/setup-acl/schema.d.ts +24 -0
- package/cjs/commands/aws/iam/setup-acl/utils.cjs +20 -0
- package/cjs/commands/aws/iam/setup-acl/utils.d.ts +61 -0
- package/cjs/commands/aws/iam/users/handler.cjs +12 -0
- package/cjs/commands/aws/iam/users/handler.d.ts +5 -0
- package/cjs/commands/aws/iam/users/index.cjs +41 -0
- package/cjs/commands/aws/iam/users/index.d.ts +3 -0
- package/cjs/commands/aws/iam/users/schema.cjs +7 -0
- package/cjs/commands/aws/iam/users/schema.d.ts +18 -0
- package/cjs/commands/aws/iam/users/utils.cjs +30 -0
- package/cjs/commands/aws/iam/users/utils.d.ts +119 -0
- package/cjs/commands/aws/index.cjs +229 -0
- package/cjs/commands/aws/index.d.ts +14 -0
- package/cjs/commands/aws/route53/add-record/handler.cjs +18 -0
- package/cjs/commands/aws/route53/add-record/handler.d.ts +36 -0
- package/cjs/commands/aws/route53/add-record/index.cjs +57 -0
- package/cjs/commands/aws/route53/add-record/index.d.ts +3 -0
- package/cjs/commands/aws/route53/add-record/schema.cjs +11 -0
- package/cjs/commands/aws/route53/add-record/schema.d.ts +45 -0
- package/cjs/commands/aws/route53/add-record/utils.cjs +37 -0
- package/cjs/commands/aws/route53/add-record/utils.d.ts +216 -0
- package/cjs/commands/aws/route53/remove-record/handler.cjs +14 -0
- package/cjs/commands/aws/route53/remove-record/handler.d.ts +6 -0
- package/cjs/commands/aws/route53/remove-record/index.cjs +18 -0
- package/cjs/commands/aws/route53/remove-record/index.d.ts +2 -0
- package/cjs/commands/aws/route53/remove-record/schema.cjs +8 -0
- package/cjs/commands/aws/route53/remove-record/schema.d.ts +30 -0
- package/cjs/commands/aws/schema.cjs +10 -0
- package/cjs/commands/aws/schema.d.ts +13 -0
- package/cjs/commands/aws/ses/send-email/handler.cjs +12 -0
- package/cjs/commands/aws/ses/send-email/handler.d.ts +5 -0
- package/cjs/commands/aws/ses/send-email/index.cjs +23 -0
- package/cjs/commands/aws/ses/send-email/index.d.ts +3 -0
- package/cjs/commands/aws/ses/send-email/schema.cjs +7 -0
- package/cjs/commands/aws/ses/send-email/schema.d.ts +39 -0
- package/cjs/commands/aws/ses/send-email/utils.cjs +11 -0
- package/cjs/commands/aws/ses/send-email/utils.d.ts +47 -0
- package/cjs/commands/aws/ses/smtp-password.cjs +10 -0
- package/cjs/commands/aws/ses/smtp-password.d.ts +21 -0
- package/cjs/commands/aws/utils/exec-aws.cjs +16 -0
- package/cjs/commands/aws/utils/exec-aws.d.ts +79 -0
- package/cjs/commands/aws/utils/resolve-policy-path.cjs +6 -0
- package/cjs/commands/aws/utils/resolve-policy-path.d.ts +8 -0
- package/cjs/commands/aws/utils/resolve-profile.cjs +11 -0
- package/cjs/commands/aws/utils/resolve-profile.d.ts +28 -0
- package/cjs/commands/aws/utils/tty.cjs +10 -0
- package/cjs/commands/aws/utils/tty.d.ts +24 -0
- package/cjs/commands/db/create-readonly-user/handler.cjs +11 -0
- package/cjs/commands/db/create-readonly-user/handler.d.ts +5 -0
- package/cjs/commands/db/create-readonly-user/index.cjs +40 -0
- package/cjs/commands/db/create-readonly-user/index.d.ts +3 -0
- package/cjs/commands/db/create-readonly-user/mysql.cjs +9 -0
- package/cjs/commands/db/create-readonly-user/mysql.d.ts +33 -0
- package/cjs/commands/db/create-readonly-user/postgres.cjs +9 -0
- package/cjs/commands/db/create-readonly-user/postgres.d.ts +31 -0
- package/cjs/commands/db/create-readonly-user/schema.cjs +12 -0
- package/cjs/commands/db/create-readonly-user/schema.d.ts +55 -0
- package/cjs/commands/db/create-readonly-user/utils.cjs +22 -0
- package/cjs/commands/db/create-readonly-user/utils.d.ts +112 -0
- package/cjs/commands/db/index.cjs +44 -0
- package/cjs/commands/db/index.d.ts +6 -0
- package/cjs/commands/doppler/handler.cjs +6 -4
- package/cjs/commands/doppler/index.cjs +32 -5
- package/cjs/commands/doppler/index.d.ts +1 -0
- package/cjs/commands/doppler/schema.cjs +10 -2
- package/cjs/commands/doppler/schema.d.ts +233 -17
- package/cjs/commands/doppler/set-secret.cjs +19 -0
- package/cjs/commands/doppler/set-secret.d.ts +113 -0
- package/cjs/commands/doppler/utils.cjs +6 -2
- package/cjs/commands/doppler/utils.d.ts +32 -8
- package/cjs/commands/icons/schema.d.ts +1 -1
- package/cjs/commands/index.cjs +91 -12
- package/esm/__chunks/2FTTEFEK.js +97 -0
- package/esm/__chunks/33UYMUQD.js +338 -0
- package/esm/__chunks/3BKWTHLJ.js +25 -0
- package/esm/__chunks/3HE4BEJX.js +105 -0
- package/esm/__chunks/3QLI5BDL.js +387 -0
- package/esm/__chunks/5GIUAFXL.js +89 -0
- package/esm/__chunks/73BJG53F.js +11 -0
- package/esm/__chunks/7VF4Q43Q.js +0 -0
- package/esm/__chunks/AEDEAYF5.js +0 -0
- package/esm/__chunks/AZCP3SFJ.js +0 -0
- package/esm/__chunks/B2DVQ2UL.js +61 -0
- package/esm/__chunks/CVQVHLW5.js +0 -0
- package/esm/__chunks/D62SPZXC.js +0 -0
- package/esm/__chunks/DLEJ25GZ.js +121 -0
- package/esm/__chunks/DMYFNF54.js +192 -0
- package/esm/__chunks/DNFTUMGD.js +23 -0
- package/esm/__chunks/DVKD6YSR.js +49 -0
- package/esm/__chunks/EMSH4P76.js +20 -0
- package/esm/__chunks/FFKFVMIE.js +167 -0
- package/esm/__chunks/FNXUONAV.js +110 -0
- package/esm/__chunks/G4NJHFFU.js +320 -0
- package/esm/__chunks/IEOGAQYI.js +46 -0
- package/esm/__chunks/IZFGBYGE.js +34 -0
- package/esm/__chunks/J34UVKLA.js +26 -0
- package/esm/__chunks/JZPBBBIG.js +74 -0
- package/esm/__chunks/KWUJP5MG.js +135 -0
- package/esm/__chunks/M35URMT4.js +313 -0
- package/esm/__chunks/NF3M2L6C.js +81 -0
- package/esm/__chunks/PNPPDYKC.js +299 -0
- package/esm/__chunks/QFXN4EHM.js +393 -0
- package/esm/__chunks/QKDDLIWD.js +146 -0
- package/esm/__chunks/QSE66AKY.js +208 -0
- package/esm/__chunks/QUF7PS4R.js +18 -0
- package/esm/__chunks/S7IJPJ4R.js +126 -0
- package/esm/__chunks/SD3E3EPH.js +163 -0
- package/esm/__chunks/T3TTUHTW.js +30 -0
- package/esm/__chunks/TIOVE6HR.js +0 -0
- package/esm/__chunks/TXKMEIDQ.js +0 -0
- package/esm/__chunks/U7HAE2RF.js +288 -0
- package/esm/__chunks/UXWY7BYE.js +63 -0
- package/esm/__chunks/VKAKISRG.js +192 -0
- package/esm/__chunks/WD2YR6I7.js +0 -0
- package/esm/__chunks/WOZFZKFY.js +0 -0
- package/esm/__chunks/XI7GZDE2.js +0 -0
- package/esm/__chunks/XOUWDB3T.js +249 -0
- package/esm/__chunks/XQN2TA4S.js +23 -0
- package/esm/__chunks/XXK32TIM.js +16 -0
- package/esm/__chunks/{O262GK4B.js → YGWTVPZE.js} +164 -27
- package/esm/__chunks/{6L5RNR7G.js → YRG7PT33.js} +44 -17
- package/esm/__chunks/ZHKVJO2U.js +47 -0
- package/esm/__chunks/ZO55YUSY.js +9 -0
- package/esm/commands/aws/ec2/allow-ip/handler.d.ts +6 -0
- package/esm/commands/aws/ec2/allow-ip/handler.js +12 -0
- package/esm/commands/aws/ec2/allow-ip/index.d.ts +3 -0
- package/esm/commands/aws/ec2/allow-ip/index.js +55 -0
- package/esm/commands/aws/ec2/allow-ip/schema.d.ts +33 -0
- package/esm/commands/aws/ec2/allow-ip/schema.js +13 -0
- package/esm/commands/aws/ec2/allow-ip/utils.d.ts +189 -0
- package/esm/commands/aws/ec2/allow-ip/utils.js +39 -0
- package/esm/commands/aws/iam/admin-group.d.ts +55 -0
- package/esm/commands/aws/iam/admin-group.js +15 -0
- package/esm/commands/aws/iam/break-glass/handler.d.ts +7 -0
- package/esm/commands/aws/iam/break-glass/handler.js +12 -0
- package/esm/commands/aws/iam/break-glass/index.d.ts +2 -0
- package/esm/commands/aws/iam/break-glass/index.js +19 -0
- package/esm/commands/aws/iam/break-glass/schema.d.ts +25 -0
- package/esm/commands/aws/iam/break-glass/schema.js +12 -0
- package/esm/commands/aws/iam/check-admin/handler.d.ts +5 -0
- package/esm/commands/aws/iam/check-admin/handler.js +10 -0
- package/esm/commands/aws/iam/check-admin/index.d.ts +2 -0
- package/esm/commands/aws/iam/check-admin/index.js +17 -0
- package/esm/commands/aws/iam/check-admin/schema.d.ts +19 -0
- package/esm/commands/aws/iam/check-admin/schema.js +12 -0
- package/esm/commands/aws/iam/policies/s3-restrictions-deny-non-s3-services.js +28 -0
- package/esm/commands/aws/iam/policies/sts-federation.js +19 -0
- package/esm/commands/aws/iam/policies/user-admins-deny-list.js +183 -0
- package/esm/commands/aws/iam/policies/user-admins-deny-regions-list.js +49 -0
- package/esm/commands/aws/iam/policies/user-admins-self-service-iam.js +64 -0
- package/esm/commands/aws/iam/policies/user-admins-write-list.js +125 -0
- package/esm/commands/aws/iam/remove-admin/handler.d.ts +6 -0
- package/esm/commands/aws/iam/remove-admin/handler.js +11 -0
- package/esm/commands/aws/iam/remove-admin/index.d.ts +2 -0
- package/esm/commands/aws/iam/remove-admin/index.js +18 -0
- package/esm/commands/aws/iam/remove-admin/schema.d.ts +28 -0
- package/esm/commands/aws/iam/remove-admin/schema.js +12 -0
- package/esm/commands/aws/iam/setup-acl/handler.d.ts +6 -0
- package/esm/commands/aws/iam/setup-acl/handler.js +14 -0
- package/esm/commands/aws/iam/setup-acl/index.d.ts +3 -0
- package/esm/commands/aws/iam/setup-acl/index.js +33 -0
- package/esm/commands/aws/iam/setup-acl/schema.d.ts +24 -0
- package/esm/commands/aws/iam/setup-acl/schema.js +7 -0
- package/esm/commands/aws/iam/setup-acl/utils.d.ts +61 -0
- package/esm/commands/aws/iam/setup-acl/utils.js +20 -0
- package/esm/commands/aws/iam/users/handler.d.ts +5 -0
- package/esm/commands/aws/iam/users/handler.js +12 -0
- package/esm/commands/aws/iam/users/index.d.ts +3 -0
- package/esm/commands/aws/iam/users/index.js +41 -0
- package/esm/commands/aws/iam/users/schema.d.ts +18 -0
- package/esm/commands/aws/iam/users/schema.js +7 -0
- package/esm/commands/aws/iam/users/utils.d.ts +119 -0
- package/esm/commands/aws/iam/users/utils.js +30 -0
- package/esm/commands/aws/index.d.ts +14 -0
- package/esm/commands/aws/index.js +229 -0
- package/esm/commands/aws/route53/add-record/handler.d.ts +36 -0
- package/esm/commands/aws/route53/add-record/handler.js +18 -0
- package/esm/commands/aws/route53/add-record/index.d.ts +3 -0
- package/esm/commands/aws/route53/add-record/index.js +57 -0
- package/esm/commands/aws/route53/add-record/schema.d.ts +45 -0
- package/esm/commands/aws/route53/add-record/schema.js +11 -0
- package/esm/commands/aws/route53/add-record/utils.d.ts +216 -0
- package/esm/commands/aws/route53/add-record/utils.js +37 -0
- package/esm/commands/aws/route53/remove-record/handler.d.ts +6 -0
- package/esm/commands/aws/route53/remove-record/handler.js +14 -0
- package/esm/commands/aws/route53/remove-record/index.d.ts +2 -0
- package/esm/commands/aws/route53/remove-record/index.js +18 -0
- package/esm/commands/aws/route53/remove-record/schema.d.ts +30 -0
- package/esm/commands/aws/route53/remove-record/schema.js +8 -0
- package/esm/commands/aws/schema.d.ts +13 -0
- package/esm/commands/aws/schema.js +10 -0
- package/esm/commands/aws/ses/send-email/handler.d.ts +5 -0
- package/esm/commands/aws/ses/send-email/handler.js +12 -0
- package/esm/commands/aws/ses/send-email/index.d.ts +3 -0
- package/esm/commands/aws/ses/send-email/index.js +23 -0
- package/esm/commands/aws/ses/send-email/schema.d.ts +39 -0
- package/esm/commands/aws/ses/send-email/schema.js +7 -0
- package/esm/commands/aws/ses/send-email/utils.d.ts +47 -0
- package/esm/commands/aws/ses/send-email/utils.js +11 -0
- package/esm/commands/aws/ses/smtp-password.d.ts +21 -0
- package/esm/commands/aws/ses/smtp-password.js +10 -0
- package/esm/commands/aws/utils/exec-aws.d.ts +79 -0
- package/esm/commands/aws/utils/exec-aws.js +16 -0
- package/esm/commands/aws/utils/resolve-policy-path.d.ts +8 -0
- package/esm/commands/aws/utils/resolve-policy-path.js +6 -0
- package/esm/commands/aws/utils/resolve-profile.d.ts +28 -0
- package/esm/commands/aws/utils/resolve-profile.js +11 -0
- package/esm/commands/aws/utils/tty.d.ts +24 -0
- package/esm/commands/aws/utils/tty.js +10 -0
- package/esm/commands/db/create-readonly-user/handler.d.ts +5 -0
- package/esm/commands/db/create-readonly-user/handler.js +11 -0
- package/esm/commands/db/create-readonly-user/index.d.ts +3 -0
- package/esm/commands/db/create-readonly-user/index.js +40 -0
- package/esm/commands/db/create-readonly-user/mysql.d.ts +33 -0
- package/esm/commands/db/create-readonly-user/mysql.js +9 -0
- package/esm/commands/db/create-readonly-user/postgres.d.ts +31 -0
- package/esm/commands/db/create-readonly-user/postgres.js +9 -0
- package/esm/commands/db/create-readonly-user/schema.d.ts +55 -0
- package/esm/commands/db/create-readonly-user/schema.js +12 -0
- package/esm/commands/db/create-readonly-user/utils.d.ts +112 -0
- package/esm/commands/db/create-readonly-user/utils.js +22 -0
- package/esm/commands/db/index.d.ts +6 -0
- package/esm/commands/db/index.js +44 -0
- package/esm/commands/doppler/handler.js +5 -3
- package/esm/commands/doppler/index.d.ts +1 -0
- package/esm/commands/doppler/index.js +32 -5
- package/esm/commands/doppler/schema.d.ts +233 -17
- package/esm/commands/doppler/schema.js +11 -3
- package/esm/commands/doppler/set-secret.d.ts +113 -0
- package/esm/commands/doppler/set-secret.js +19 -0
- package/esm/commands/doppler/utils.d.ts +32 -8
- package/esm/commands/doppler/utils.js +5 -1
- package/esm/commands/icons/schema.d.ts +1 -1
- package/esm/commands/index.js +86 -7
- package/package.json +12 -2
- package/vitest.config.ts +11 -0
- package/cjs/__chunks/4GFJUCSP.cjs +0 -52
- package/esm/__chunks/X3R5PSWH.js +0 -52
- /package/cjs/__chunks/{WNJ3ZYLI.cjs → 3BY5Y4W7.cjs} +0 -0
- /package/esm/__chunks/{46HGXFME.js → 5ZBVGSOK.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ACL_GROUPS,
|
|
3
|
+
CUSTOM_POLICIES,
|
|
4
|
+
attach,
|
|
5
|
+
detach,
|
|
6
|
+
ensureGroup,
|
|
7
|
+
printFinalState,
|
|
8
|
+
publishPolicy
|
|
9
|
+
} from "../../../../__chunks/XOUWDB3T.js";
|
|
10
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
11
|
+
import "../../../../__chunks/ZO55YUSY.js";
|
|
12
|
+
export {
|
|
13
|
+
ACL_GROUPS,
|
|
14
|
+
CUSTOM_POLICIES,
|
|
15
|
+
attach,
|
|
16
|
+
detach,
|
|
17
|
+
ensureGroup,
|
|
18
|
+
printFinalState,
|
|
19
|
+
publishPolicy
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usersCommand
|
|
3
|
+
} from "../../../../__chunks/JZPBBBIG.js";
|
|
4
|
+
import "../../../../__chunks/XXK32TIM.js";
|
|
5
|
+
import "../../../../__chunks/3QLI5BDL.js";
|
|
6
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
7
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
8
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
9
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
10
|
+
export {
|
|
11
|
+
usersCommand
|
|
12
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import "../../../../__chunks/CVQVHLW5.js";
|
|
2
|
+
import {
|
|
3
|
+
usersCommand
|
|
4
|
+
} from "../../../../__chunks/JZPBBBIG.js";
|
|
5
|
+
import {
|
|
6
|
+
usersOptionsSchema
|
|
7
|
+
} from "../../../../__chunks/XXK32TIM.js";
|
|
8
|
+
import {
|
|
9
|
+
buildUsername,
|
|
10
|
+
createCliAccessKey,
|
|
11
|
+
createUsersInteractive,
|
|
12
|
+
ensureAclGroupsExist,
|
|
13
|
+
ensureUser,
|
|
14
|
+
ensureUserInGroup,
|
|
15
|
+
inferAccountName,
|
|
16
|
+
isValidSlug,
|
|
17
|
+
normalizeIdentifier,
|
|
18
|
+
normalizeSlug,
|
|
19
|
+
parseMdUsername,
|
|
20
|
+
roleToGroup
|
|
21
|
+
} from "../../../../__chunks/3QLI5BDL.js";
|
|
22
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
23
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
24
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
25
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
26
|
+
export {
|
|
27
|
+
buildUsername,
|
|
28
|
+
createCliAccessKey,
|
|
29
|
+
createUsersInteractive,
|
|
30
|
+
ensureAclGroupsExist,
|
|
31
|
+
ensureUser,
|
|
32
|
+
ensureUserInGroup,
|
|
33
|
+
inferAccountName,
|
|
34
|
+
isValidSlug,
|
|
35
|
+
normalizeIdentifier,
|
|
36
|
+
normalizeSlug,
|
|
37
|
+
parseMdUsername,
|
|
38
|
+
roleToGroup,
|
|
39
|
+
usersCommand,
|
|
40
|
+
usersOptionsSchema
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schema for `aws iam users` options.
|
|
3
|
+
*/
|
|
4
|
+
export const usersOptionsSchema: z.ZodObject<{
|
|
5
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
6
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
7
|
+
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
verbose: boolean;
|
|
10
|
+
profile?: string | undefined;
|
|
11
|
+
accountName?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
profile?: string | undefined;
|
|
14
|
+
verbose?: boolean | undefined;
|
|
15
|
+
accountName?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type UsersOptions = z.infer<typeof usersOptionsSchema>;
|
|
18
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map a user role to its ACL group.
|
|
3
|
+
* @param {string} role
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
export function roleToGroup(role: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Lowercase and hyphenate a raw value into a slug.
|
|
9
|
+
* @param {string} value
|
|
10
|
+
* @returns {string}
|
|
11
|
+
*/
|
|
12
|
+
export function normalizeSlug(value: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} value
|
|
15
|
+
* @returns {boolean}
|
|
16
|
+
*/
|
|
17
|
+
export function isValidSlug(value: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Build the canonical IAM username.
|
|
20
|
+
* @param {{ identifier: string; accountName: string; role: string }} params
|
|
21
|
+
* @returns {string}
|
|
22
|
+
*/
|
|
23
|
+
export function buildUsername(params: {
|
|
24
|
+
identifier: string;
|
|
25
|
+
accountName: string;
|
|
26
|
+
role: string;
|
|
27
|
+
}): string;
|
|
28
|
+
/**
|
|
29
|
+
* Strip md- prefix, role suffix, and account suffix from a raw identifier.
|
|
30
|
+
* @param {{ raw: string; accountName: string; role: string }} params
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
export function normalizeIdentifier(params: {
|
|
34
|
+
raw: string;
|
|
35
|
+
accountName: string;
|
|
36
|
+
role: string;
|
|
37
|
+
}): string;
|
|
38
|
+
/**
|
|
39
|
+
* Parse an md-{identifier}-{account}-{role} username into parts.
|
|
40
|
+
* Identifier is the first segment; account is everything between it and the role
|
|
41
|
+
* (so multi-segment account slugs still work).
|
|
42
|
+
* @param {string} name - Profile name or IAM user name
|
|
43
|
+
* @returns {{ identifier: string; accountName: string; role: string } | null}
|
|
44
|
+
*/
|
|
45
|
+
export function parseMdUsername(name: string): {
|
|
46
|
+
identifier: string;
|
|
47
|
+
accountName: string;
|
|
48
|
+
role: string;
|
|
49
|
+
} | null;
|
|
50
|
+
/**
|
|
51
|
+
* Infer the AWS account slug from the caller IAM user / profile name.
|
|
52
|
+
* Prefers the ARN username, then the profile string.
|
|
53
|
+
* @param {{
|
|
54
|
+
* profile?: string;
|
|
55
|
+
* identity?: { Arn?: string };
|
|
56
|
+
* }} params
|
|
57
|
+
* @returns {string | null}
|
|
58
|
+
*/
|
|
59
|
+
export function inferAccountName(params: {
|
|
60
|
+
profile?: string;
|
|
61
|
+
identity?: {
|
|
62
|
+
Arn?: string;
|
|
63
|
+
};
|
|
64
|
+
}): string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Create the IAM user if it does not exist.
|
|
67
|
+
* @param {{ username: string; profile?: string; verbose?: boolean }} params
|
|
68
|
+
*/
|
|
69
|
+
export function ensureUser(params: {
|
|
70
|
+
username: string;
|
|
71
|
+
profile?: string;
|
|
72
|
+
verbose?: boolean;
|
|
73
|
+
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Add the user to the group if not already a member.
|
|
76
|
+
* @param {{ username: string; group: string; profile?: string; verbose?: boolean }} params
|
|
77
|
+
*/
|
|
78
|
+
export function ensureUserInGroup(params: {
|
|
79
|
+
username: string;
|
|
80
|
+
group: string;
|
|
81
|
+
profile?: string;
|
|
82
|
+
verbose?: boolean;
|
|
83
|
+
}): void;
|
|
84
|
+
/**
|
|
85
|
+
* Create a CLI access key for the user and print a one-line setup command.
|
|
86
|
+
* @param {{ username: string; profile?: string; verbose?: boolean }} params
|
|
87
|
+
* @returns {boolean} False when the user already has the maximum number of keys
|
|
88
|
+
*/
|
|
89
|
+
export function createCliAccessKey(params: {
|
|
90
|
+
username: string;
|
|
91
|
+
profile?: string;
|
|
92
|
+
verbose?: boolean;
|
|
93
|
+
}): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Verify the required ACL groups exist before creating users.
|
|
96
|
+
* @param {{ profile?: string; verbose?: boolean }} params
|
|
97
|
+
* @returns {boolean}
|
|
98
|
+
*/
|
|
99
|
+
export function ensureAclGroupsExist(params: {
|
|
100
|
+
profile?: string;
|
|
101
|
+
verbose?: boolean;
|
|
102
|
+
}): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Interactively create IAM users, assign ACL groups, and print CLI credentials.
|
|
105
|
+
* @param {{
|
|
106
|
+
* accountName?: string;
|
|
107
|
+
* profile?: string;
|
|
108
|
+
* identity?: { Arn?: string };
|
|
109
|
+
* verbose?: boolean;
|
|
110
|
+
* }} params
|
|
111
|
+
*/
|
|
112
|
+
export function createUsersInteractive(params: {
|
|
113
|
+
accountName?: string;
|
|
114
|
+
profile?: string;
|
|
115
|
+
identity?: {
|
|
116
|
+
Arn?: string;
|
|
117
|
+
};
|
|
118
|
+
verbose?: boolean;
|
|
119
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildUsername,
|
|
3
|
+
createCliAccessKey,
|
|
4
|
+
createUsersInteractive,
|
|
5
|
+
ensureAclGroupsExist,
|
|
6
|
+
ensureUser,
|
|
7
|
+
ensureUserInGroup,
|
|
8
|
+
inferAccountName,
|
|
9
|
+
isValidSlug,
|
|
10
|
+
normalizeIdentifier,
|
|
11
|
+
normalizeSlug,
|
|
12
|
+
parseMdUsername,
|
|
13
|
+
roleToGroup
|
|
14
|
+
} from "../../../../__chunks/3QLI5BDL.js";
|
|
15
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
16
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
17
|
+
export {
|
|
18
|
+
buildUsername,
|
|
19
|
+
createCliAccessKey,
|
|
20
|
+
createUsersInteractive,
|
|
21
|
+
ensureAclGroupsExist,
|
|
22
|
+
ensureUser,
|
|
23
|
+
ensureUserInGroup,
|
|
24
|
+
inferAccountName,
|
|
25
|
+
isValidSlug,
|
|
26
|
+
normalizeIdentifier,
|
|
27
|
+
normalizeSlug,
|
|
28
|
+
parseMdUsername,
|
|
29
|
+
roleToGroup
|
|
30
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register the `aws` command group and its subcommands on the root program.
|
|
3
|
+
* @param {import('commander').Command} program
|
|
4
|
+
*/
|
|
5
|
+
export function registerAwsCommands(program: import("commander").Command): void;
|
|
6
|
+
export * from "./ec2/allow-ip/index.js";
|
|
7
|
+
export * from "./iam/break-glass/index.js";
|
|
8
|
+
export * from "./iam/check-admin/index.js";
|
|
9
|
+
export * from "./iam/remove-admin/index.js";
|
|
10
|
+
export * from "./iam/setup-acl/index.js";
|
|
11
|
+
export * from "./iam/users/index.js";
|
|
12
|
+
export * from "./route53/add-record/index.js";
|
|
13
|
+
export * from "./route53/remove-record/index.js";
|
|
14
|
+
export * from "./ses/send-email/index.js";
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerAwsCommands
|
|
3
|
+
} from "../../__chunks/QSE66AKY.js";
|
|
4
|
+
import "../../__chunks/AEDEAYF5.js";
|
|
5
|
+
import {
|
|
6
|
+
allowIpCommand
|
|
7
|
+
} from "../../__chunks/PNPPDYKC.js";
|
|
8
|
+
import {
|
|
9
|
+
authorizeRule,
|
|
10
|
+
describeSecurityGroups,
|
|
11
|
+
extractRoamingFirstName,
|
|
12
|
+
getCurrentPublicIp,
|
|
13
|
+
getSecurityGroupDetails,
|
|
14
|
+
instanceLabel,
|
|
15
|
+
listEnabledRegions,
|
|
16
|
+
listInstances,
|
|
17
|
+
listSshIngressRules,
|
|
18
|
+
printSshRules,
|
|
19
|
+
resolveRoamingRule,
|
|
20
|
+
revokeRule,
|
|
21
|
+
roamingRuleDescription,
|
|
22
|
+
ruleAlreadyAllowsIp,
|
|
23
|
+
securityGroupLabel,
|
|
24
|
+
sshRuleLabel
|
|
25
|
+
} from "../../__chunks/U7HAE2RF.js";
|
|
26
|
+
import {
|
|
27
|
+
DEFAULT_REGION,
|
|
28
|
+
DEFAULT_ROAMING_NAME,
|
|
29
|
+
SSH_PORT,
|
|
30
|
+
allowIpOptionsSchema
|
|
31
|
+
} from "../../__chunks/J34UVKLA.js";
|
|
32
|
+
import "../../__chunks/5ZBVGSOK.js";
|
|
33
|
+
import {
|
|
34
|
+
checkAdminCommand
|
|
35
|
+
} from "../../__chunks/S7IJPJ4R.js";
|
|
36
|
+
import {
|
|
37
|
+
checkAdminOptionsSchema
|
|
38
|
+
} from "../../__chunks/QUF7PS4R.js";
|
|
39
|
+
import "../../__chunks/TIOVE6HR.js";
|
|
40
|
+
import {
|
|
41
|
+
breakGlassCommand
|
|
42
|
+
} from "../../__chunks/VKAKISRG.js";
|
|
43
|
+
import {
|
|
44
|
+
breakGlassOptionsSchema
|
|
45
|
+
} from "../../__chunks/EMSH4P76.js";
|
|
46
|
+
import "../../__chunks/D62SPZXC.js";
|
|
47
|
+
import {
|
|
48
|
+
removeAdminCommand
|
|
49
|
+
} from "../../__chunks/FFKFVMIE.js";
|
|
50
|
+
import {
|
|
51
|
+
removeAdminOptionsSchema
|
|
52
|
+
} from "../../__chunks/DNFTUMGD.js";
|
|
53
|
+
import {
|
|
54
|
+
ADMIN_GROUP_NAME
|
|
55
|
+
} from "../../__chunks/NF3M2L6C.js";
|
|
56
|
+
import "../../__chunks/CVQVHLW5.js";
|
|
57
|
+
import {
|
|
58
|
+
usersCommand
|
|
59
|
+
} from "../../__chunks/JZPBBBIG.js";
|
|
60
|
+
import {
|
|
61
|
+
usersOptionsSchema
|
|
62
|
+
} from "../../__chunks/XXK32TIM.js";
|
|
63
|
+
import "../../__chunks/WOZFZKFY.js";
|
|
64
|
+
import {
|
|
65
|
+
setupAclCommand
|
|
66
|
+
} from "../../__chunks/DMYFNF54.js";
|
|
67
|
+
import {
|
|
68
|
+
ACL_GROUPS,
|
|
69
|
+
CUSTOM_POLICIES,
|
|
70
|
+
attach,
|
|
71
|
+
detach,
|
|
72
|
+
ensureGroup,
|
|
73
|
+
printFinalState,
|
|
74
|
+
publishPolicy
|
|
75
|
+
} from "../../__chunks/XOUWDB3T.js";
|
|
76
|
+
import {
|
|
77
|
+
buildUsername,
|
|
78
|
+
createCliAccessKey,
|
|
79
|
+
createUsersInteractive,
|
|
80
|
+
ensureAclGroupsExist,
|
|
81
|
+
ensureUser,
|
|
82
|
+
ensureUserInGroup,
|
|
83
|
+
inferAccountName,
|
|
84
|
+
isValidSlug,
|
|
85
|
+
normalizeIdentifier,
|
|
86
|
+
normalizeSlug,
|
|
87
|
+
parseMdUsername,
|
|
88
|
+
roleToGroup
|
|
89
|
+
} from "../../__chunks/3QLI5BDL.js";
|
|
90
|
+
import {
|
|
91
|
+
setupAclOptionsSchema
|
|
92
|
+
} from "../../__chunks/XQN2TA4S.js";
|
|
93
|
+
import "../../__chunks/7VF4Q43Q.js";
|
|
94
|
+
import {
|
|
95
|
+
removeRecordCommand
|
|
96
|
+
} from "../../__chunks/QKDDLIWD.js";
|
|
97
|
+
import {
|
|
98
|
+
removeRecordOptionsSchema
|
|
99
|
+
} from "../../__chunks/IZFGBYGE.js";
|
|
100
|
+
import "../../__chunks/XI7GZDE2.js";
|
|
101
|
+
import {
|
|
102
|
+
addRecordCommand,
|
|
103
|
+
resolveHostedZone,
|
|
104
|
+
resolveName,
|
|
105
|
+
resolveRecordType
|
|
106
|
+
} from "../../__chunks/G4NJHFFU.js";
|
|
107
|
+
import {
|
|
108
|
+
bareHostedZoneId,
|
|
109
|
+
deleteResourceRecordSet,
|
|
110
|
+
findCnameConflicts,
|
|
111
|
+
findHostedZone,
|
|
112
|
+
formatValues,
|
|
113
|
+
getRecordSetsAtName,
|
|
114
|
+
getResourceRecordSet,
|
|
115
|
+
hostedZoneLabel,
|
|
116
|
+
listHostedZones,
|
|
117
|
+
normalizeRecordValue,
|
|
118
|
+
planRecordChange,
|
|
119
|
+
resolveRecordName,
|
|
120
|
+
upsertResourceRecordSet,
|
|
121
|
+
withTrailingDot,
|
|
122
|
+
withoutTrailingDot
|
|
123
|
+
} from "../../__chunks/33UYMUQD.js";
|
|
124
|
+
import {
|
|
125
|
+
DEFAULT_TTL,
|
|
126
|
+
RECORD_TYPES,
|
|
127
|
+
addRecordOptionsSchema
|
|
128
|
+
} from "../../__chunks/IEOGAQYI.js";
|
|
129
|
+
import "../../__chunks/FNXUONAV.js";
|
|
130
|
+
import "../../__chunks/ZO55YUSY.js";
|
|
131
|
+
import "../../__chunks/TXKMEIDQ.js";
|
|
132
|
+
import {
|
|
133
|
+
sendEmailCommand
|
|
134
|
+
} from "../../__chunks/2FTTEFEK.js";
|
|
135
|
+
import {
|
|
136
|
+
defaultBody,
|
|
137
|
+
sendViaApi,
|
|
138
|
+
sendViaSmtp
|
|
139
|
+
} from "../../__chunks/UXWY7BYE.js";
|
|
140
|
+
import "../../__chunks/B2DVQ2UL.js";
|
|
141
|
+
import "../../__chunks/5GIUAFXL.js";
|
|
142
|
+
import {
|
|
143
|
+
sendEmailOptionsSchema
|
|
144
|
+
} from "../../__chunks/3BKWTHLJ.js";
|
|
145
|
+
import "../../__chunks/73BJG53F.js";
|
|
146
|
+
import "../../__chunks/ZHKVJO2U.js";
|
|
147
|
+
export {
|
|
148
|
+
ACL_GROUPS,
|
|
149
|
+
ADMIN_GROUP_NAME,
|
|
150
|
+
CUSTOM_POLICIES,
|
|
151
|
+
DEFAULT_REGION,
|
|
152
|
+
DEFAULT_ROAMING_NAME,
|
|
153
|
+
DEFAULT_TTL,
|
|
154
|
+
RECORD_TYPES,
|
|
155
|
+
SSH_PORT,
|
|
156
|
+
addRecordCommand,
|
|
157
|
+
addRecordOptionsSchema,
|
|
158
|
+
allowIpCommand,
|
|
159
|
+
allowIpOptionsSchema,
|
|
160
|
+
attach,
|
|
161
|
+
authorizeRule,
|
|
162
|
+
bareHostedZoneId,
|
|
163
|
+
breakGlassCommand,
|
|
164
|
+
breakGlassOptionsSchema,
|
|
165
|
+
buildUsername,
|
|
166
|
+
checkAdminCommand,
|
|
167
|
+
checkAdminOptionsSchema,
|
|
168
|
+
createCliAccessKey,
|
|
169
|
+
createUsersInteractive,
|
|
170
|
+
defaultBody,
|
|
171
|
+
deleteResourceRecordSet,
|
|
172
|
+
describeSecurityGroups,
|
|
173
|
+
detach,
|
|
174
|
+
ensureAclGroupsExist,
|
|
175
|
+
ensureGroup,
|
|
176
|
+
ensureUser,
|
|
177
|
+
ensureUserInGroup,
|
|
178
|
+
extractRoamingFirstName,
|
|
179
|
+
findCnameConflicts,
|
|
180
|
+
findHostedZone,
|
|
181
|
+
formatValues,
|
|
182
|
+
getCurrentPublicIp,
|
|
183
|
+
getRecordSetsAtName,
|
|
184
|
+
getResourceRecordSet,
|
|
185
|
+
getSecurityGroupDetails,
|
|
186
|
+
hostedZoneLabel,
|
|
187
|
+
inferAccountName,
|
|
188
|
+
instanceLabel,
|
|
189
|
+
isValidSlug,
|
|
190
|
+
listEnabledRegions,
|
|
191
|
+
listHostedZones,
|
|
192
|
+
listInstances,
|
|
193
|
+
listSshIngressRules,
|
|
194
|
+
normalizeIdentifier,
|
|
195
|
+
normalizeRecordValue,
|
|
196
|
+
normalizeSlug,
|
|
197
|
+
parseMdUsername,
|
|
198
|
+
planRecordChange,
|
|
199
|
+
printFinalState,
|
|
200
|
+
printSshRules,
|
|
201
|
+
publishPolicy,
|
|
202
|
+
registerAwsCommands,
|
|
203
|
+
removeAdminCommand,
|
|
204
|
+
removeAdminOptionsSchema,
|
|
205
|
+
removeRecordCommand,
|
|
206
|
+
removeRecordOptionsSchema,
|
|
207
|
+
resolveHostedZone,
|
|
208
|
+
resolveName,
|
|
209
|
+
resolveRecordName,
|
|
210
|
+
resolveRecordType,
|
|
211
|
+
resolveRoamingRule,
|
|
212
|
+
revokeRule,
|
|
213
|
+
roamingRuleDescription,
|
|
214
|
+
roleToGroup,
|
|
215
|
+
ruleAlreadyAllowsIp,
|
|
216
|
+
securityGroupLabel,
|
|
217
|
+
sendEmailCommand,
|
|
218
|
+
sendEmailOptionsSchema,
|
|
219
|
+
sendViaApi,
|
|
220
|
+
sendViaSmtp,
|
|
221
|
+
setupAclCommand,
|
|
222
|
+
setupAclOptionsSchema,
|
|
223
|
+
sshRuleLabel,
|
|
224
|
+
upsertResourceRecordSet,
|
|
225
|
+
usersCommand,
|
|
226
|
+
usersOptionsSchema,
|
|
227
|
+
withTrailingDot,
|
|
228
|
+
withoutTrailingDot
|
|
229
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve the hosted zone: from --zone, or interactive picker.
|
|
3
|
+
* @param {{
|
|
4
|
+
* profile?: string;
|
|
5
|
+
* zoneOption?: string;
|
|
6
|
+
* verbose: boolean;
|
|
7
|
+
* }} params
|
|
8
|
+
* @returns {Promise<import("./utils.js").HostedZone>}
|
|
9
|
+
*/
|
|
10
|
+
export function resolveHostedZone(params: {
|
|
11
|
+
profile?: string;
|
|
12
|
+
zoneOption?: string;
|
|
13
|
+
verbose: boolean;
|
|
14
|
+
}): Promise<import("./utils.js").HostedZone>;
|
|
15
|
+
/**
|
|
16
|
+
* Resolve record type from --type or interactive picker.
|
|
17
|
+
* @param {string | undefined} typeOption
|
|
18
|
+
* @returns {Promise<string>}
|
|
19
|
+
*/
|
|
20
|
+
export function resolveRecordType(typeOption: string | undefined): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Resolve record name from --name or prompt.
|
|
23
|
+
* @param {{ nameOption?: string; zoneName: string }} params
|
|
24
|
+
* @returns {Promise<string>} FQDN with trailing dot
|
|
25
|
+
*/
|
|
26
|
+
export function resolveName(params: {
|
|
27
|
+
nameOption?: string;
|
|
28
|
+
zoneName: string;
|
|
29
|
+
}): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* `aws route53 add-record` handler: interactively (or via flags) create or
|
|
32
|
+
* update a Route53 resource record set, showing whether the change adds or
|
|
33
|
+
* overwrites.
|
|
34
|
+
* @param {unknown} options
|
|
35
|
+
*/
|
|
36
|
+
export function addRecordCommand(options: unknown): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addRecordCommand,
|
|
3
|
+
resolveHostedZone,
|
|
4
|
+
resolveName,
|
|
5
|
+
resolveRecordType
|
|
6
|
+
} from "../../../../__chunks/G4NJHFFU.js";
|
|
7
|
+
import "../../../../__chunks/33UYMUQD.js";
|
|
8
|
+
import "../../../../__chunks/IEOGAQYI.js";
|
|
9
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
10
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
11
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
12
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
13
|
+
export {
|
|
14
|
+
addRecordCommand,
|
|
15
|
+
resolveHostedZone,
|
|
16
|
+
resolveName,
|
|
17
|
+
resolveRecordType
|
|
18
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "../../../../__chunks/XI7GZDE2.js";
|
|
2
|
+
import {
|
|
3
|
+
addRecordCommand,
|
|
4
|
+
resolveHostedZone,
|
|
5
|
+
resolveName,
|
|
6
|
+
resolveRecordType
|
|
7
|
+
} from "../../../../__chunks/G4NJHFFU.js";
|
|
8
|
+
import {
|
|
9
|
+
bareHostedZoneId,
|
|
10
|
+
deleteResourceRecordSet,
|
|
11
|
+
findCnameConflicts,
|
|
12
|
+
findHostedZone,
|
|
13
|
+
formatValues,
|
|
14
|
+
getRecordSetsAtName,
|
|
15
|
+
getResourceRecordSet,
|
|
16
|
+
hostedZoneLabel,
|
|
17
|
+
listHostedZones,
|
|
18
|
+
normalizeRecordValue,
|
|
19
|
+
planRecordChange,
|
|
20
|
+
resolveRecordName,
|
|
21
|
+
upsertResourceRecordSet,
|
|
22
|
+
withTrailingDot,
|
|
23
|
+
withoutTrailingDot
|
|
24
|
+
} from "../../../../__chunks/33UYMUQD.js";
|
|
25
|
+
import {
|
|
26
|
+
DEFAULT_TTL,
|
|
27
|
+
RECORD_TYPES,
|
|
28
|
+
addRecordOptionsSchema
|
|
29
|
+
} from "../../../../__chunks/IEOGAQYI.js";
|
|
30
|
+
import "../../../../__chunks/FNXUONAV.js";
|
|
31
|
+
import "../../../../__chunks/5GIUAFXL.js";
|
|
32
|
+
import "../../../../__chunks/73BJG53F.js";
|
|
33
|
+
import "../../../../__chunks/ZHKVJO2U.js";
|
|
34
|
+
export {
|
|
35
|
+
DEFAULT_TTL,
|
|
36
|
+
RECORD_TYPES,
|
|
37
|
+
addRecordCommand,
|
|
38
|
+
addRecordOptionsSchema,
|
|
39
|
+
bareHostedZoneId,
|
|
40
|
+
deleteResourceRecordSet,
|
|
41
|
+
findCnameConflicts,
|
|
42
|
+
findHostedZone,
|
|
43
|
+
formatValues,
|
|
44
|
+
getRecordSetsAtName,
|
|
45
|
+
getResourceRecordSet,
|
|
46
|
+
hostedZoneLabel,
|
|
47
|
+
listHostedZones,
|
|
48
|
+
normalizeRecordValue,
|
|
49
|
+
planRecordChange,
|
|
50
|
+
resolveHostedZone,
|
|
51
|
+
resolveName,
|
|
52
|
+
resolveRecordName,
|
|
53
|
+
resolveRecordType,
|
|
54
|
+
upsertResourceRecordSet,
|
|
55
|
+
withTrailingDot,
|
|
56
|
+
withoutTrailingDot
|
|
57
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Route53 record types offered in the interactive picker.
|
|
3
|
+
* Alias records are not supported by this command.
|
|
4
|
+
*/
|
|
5
|
+
export const RECORD_TYPES: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Default TTL (seconds) when creating or replacing a record set.
|
|
8
|
+
*/
|
|
9
|
+
export const DEFAULT_TTL: 300;
|
|
10
|
+
/**
|
|
11
|
+
* Zod schema for `aws route53 add-record` options.
|
|
12
|
+
*/
|
|
13
|
+
export const addRecordOptionsSchema: z.ZodObject<{
|
|
14
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
15
|
+
zone: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
value: z.ZodOptional<z.ZodString>;
|
|
19
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
21
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
verbose: boolean;
|
|
25
|
+
yes: boolean;
|
|
26
|
+
dryRun: boolean;
|
|
27
|
+
profile?: string | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
type?: string | undefined;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
zone?: string | undefined;
|
|
32
|
+
ttl?: number | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
profile?: string | undefined;
|
|
35
|
+
verbose?: boolean | undefined;
|
|
36
|
+
yes?: boolean | undefined;
|
|
37
|
+
value?: string | undefined;
|
|
38
|
+
type?: string | undefined;
|
|
39
|
+
dryRun?: boolean | undefined;
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
zone?: string | undefined;
|
|
42
|
+
ttl?: number | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type AddRecordOptions = z.infer<typeof addRecordOptionsSchema>;
|
|
45
|
+
import { z } from "zod";
|