diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b99d3..fe83e52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [5.0.2] - 2024-01-19 + +### Fixed + +- Fixed EC2 client credentials initialization + ## [5.0.1] - 2024-01-19 ### Changed diff --git a/package.json b/package.json index c5946ad..5f87f2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serverless-vpc-discovery", - "version": "5.0.1", + "version": "5.0.2", "engines": { "node": ">=14" }, diff --git a/src/aws/ec2-wrapper.ts b/src/aws/ec2-wrapper.ts index ddabe10..4ff68c1 100644 --- a/src/aws/ec2-wrapper.ts +++ b/src/aws/ec2-wrapper.ts @@ -12,11 +12,11 @@ export class EC2Wrapper { public ec2: EC2Client constructor (credentials: any) { - this.ec2 = new EC2Client([{ + this.ec2 = new EC2Client({ credentials, region: Globals.getRegion(), retryStrategy: Globals.getRetryStrategy() - }]); + }); } /**