diff --git a/docs/guides/credentials.md b/docs/guides/credentials.md index e311ef3af7..fd1667df60 100644 --- a/docs/guides/credentials.md +++ b/docs/guides/credentials.md @@ -47,7 +47,7 @@ To limit the Serverless Framework’s access your AWS account, follow these step 2. Click on **Users** and then **Add user**. Enter a name in the first field to remind you this User is related to the Service you are deploying with the Serverless Framework, like `serverless-servicename-agent`. Enable **Programmatic access** by clicking the checkbox. Click **Next** to go through to the Permissions page. Click on **Create policy**. Select the **JSON** tab, and add a JSON file. You can use [this gist](https://gist.github.com/ServerlessBot/7618156b8671840a539f405dea2704c8) as a guide. - When you are finished, select **Review policy**. You can assign this policy a **Name** and **Description**, then choose **Create Policy**. Check to make sure everything looks good and click **Create user**. Later, you can create different IAM Users for different apps and different stages of those apps. That is, if you don't use separate AWS accounts for stages/apps, which is most common. + When you are finished, select **Review policy**. You can assign this policy a **Name** and **Description**, then choose **Create Policy**. Check to make sure everything looks good and click **Create user**. Later, you can create different IAM Users for different apps and different stages of those apps. That is, if you don't use separate AWS accounts for stages/apps, which is most common. 3. View and copy the **API Key** & **Secret** to a temporary place. These are your AWS access keys. diff --git a/lib/cli/resolve-input.js b/lib/cli/resolve-input.js index baad795f37..bc04961797 100644 --- a/lib/cli/resolve-input.js +++ b/lib/cli/resolve-input.js @@ -53,11 +53,7 @@ module.exports = memoizee((commandsSchema = require('./commands-schema')) => { } } - if ( - options.help || - options.version || - command === 'help' - ) { + if (options.help || options.version || command === 'help') { result.isHelpRequest = true; } diff --git a/lib/plugins/aws/deploy/index.js b/lib/plugins/aws/deploy/index.js index 8fd762335d..f87c057b4a 100644 --- a/lib/plugins/aws/deploy/index.js +++ b/lib/plugins/aws/deploy/index.js @@ -94,9 +94,7 @@ class AwsDeploy { log.notice( `Deploying ${this.serverless.service.service} to stage ${this.serverless .getProvider('aws') - .getStage()} ${style.aside( - `(${this.serverless.getProvider('aws').getRegion()})` - )}` + .getStage()} ${style.aside(`(${this.serverless.getProvider('aws').getRegion()})`)}` ); log.info(); // Ensure gap between verbose logging diff --git a/lib/plugins/aws/invoke-local/index.js b/lib/plugins/aws/invoke-local/index.js index 250ea55ed3..6d4cb92cd2 100644 --- a/lib/plugins/aws/invoke-local/index.js +++ b/lib/plugins/aws/invoke-local/index.js @@ -253,7 +253,17 @@ class AwsInvokeLocal { ); } - if (['python3.7', 'python3.8', 'python3.9', 'python3.10', 'python3.11'].includes(runtime)) { + if ( + [ + 'python3.7', + 'python3.8', + 'python3.9', + 'python3.10', + 'python3.11', + 'python3.12', + 'python3.13', + ].includes(runtime) + ) { const handlerComponents = handler.split(/\./); const handlerPath = handlerComponents.slice(0, -1).join('.'); const handlerName = handlerComponents.pop(); diff --git a/lib/utils/standalone.js b/lib/utils/standalone.js index b61acbd9b4..2142152b84 100644 --- a/lib/utils/standalone.js +++ b/lib/utils/standalone.js @@ -31,14 +31,16 @@ const arch = (() => { module.exports = { resolveLatestTag: async () => { const response = await fetch( - 'https://api.github.com/repos/serverless/serverless/releases/latest' + 'https://api.github.com/repos/serverless/serverless/releases/latest' ); const data = await response.json(); return data.tag_name; }, resolveUrl: (tagName) => { - return `https://github.com/serverless/serverless/releases/download/${tagName}/` + - `serverless-${platform}-${arch}`; + return ( + `https://github.com/serverless/serverless/releases/download/${tagName}/` + + `serverless-${platform}-${arch}` + ); }, path: `${os.homedir()}/.serverless/bin/serverless`, }; diff --git a/test/unit/lib/cli/handle-error.test.js b/test/unit/lib/cli/handle-error.test.js index b51483aa9a..78ccd0d48b 100644 --- a/test/unit/lib/cli/handle-error.test.js +++ b/test/unit/lib/cli/handle-error.test.js @@ -28,5 +28,4 @@ describe('test/unit/lib/cli/handle-error.test.js', () => { const output = await observeOutput(() => handleError(handleError('NON-ERROR'))); expect(output).to.have.string('NON-ERROR'); }); - });