Releases: thinkinglabs/aws-iam-policy
v3.1.0
Changelog
-
Add support for Policy
Id
to thePolicyDocument
(#29). -
Move the policy
Version
at the top of the serialised JSON policy document. -
Drop the minimal Node.js version requirement
-
Replace
npm
byvolta
as Node.js version manager. -
Introduce a matrix build on Node.js v18, v20, v22 (#30)
Full Changelog: v3.0.0...v3.1.0
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@3.1.0
v3.0.0
Changelog
-
Extend the validation with policy document size quota (#6).
-
Extend the validation with the valid
Sid
values for IAM policy, KMS key policy, S3 bucket policy and SecretsManager secret policy (#5). -
Fix a bug where the root account principal was deserialised as an
ArnPrincipal
(#26).
🚨 BREAKING CHANGE
-
Consolidate
PolicyDocument.validateForAnyPolicy
,PolicyDocument.validateForIndentityPolicy
andPolicyDocument.validateForResourcePolicy
intoPolicyDocument.validate(PolicyType)
wherePolicyType
acceptsIAM
,KMS
,S3
andSecretsManager
(#6). -
Add support for the role principal #16
Replaces
ArnPrincipal
used for an IAM Role with ARNarn:aws:iam::123456789000:role/a/path/a_role
.Serialising
ArnPrincipal
will still produce a valid IAM Policy Statement AWS Principal JSON fragment{"AWS": "arn:aws:iam::123456789000:role/a/path/a_role"}
.Deserialising an AWS Principal JSON fragment
{ "AWS": "arn:aws:iam::123456789000:role/a/path/a_role" }
will now produce aRolePrincipal
instead of anArnPrincipal
. -
Add support for the user principal #16
Replaces
ArnPrincipal
used for an IAM User with ARNarn:aws:iam::123456789000:user/a/path/a_user
.Serialising
ArnPrincipal
will still produce a valid IAM Policy Statement AWS Principal JSON fragment{"AWS": "arn:aws:iam::123456789000:user/a/path/a_user"}
.Deserialising an AWS Principal JSON fragment
{ "AWS": "arn:aws:iam::123456789000:user/a/path/a_user" }
will now produce aUserPrincipal
instead of anArnPrincipal
.
Full Changelog: v2.7.0...v3.0.0
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@3.0.0
v2.7.0
Changelog
- Add support for the CloudFront principal #24 reported and fixed (#25) by @araguacaima
Full Changelog: v2.6.1...v2.7.0
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@2.7.0
v2.6.1
Changelog
- Export the
WildcardPrincipal
(#23 by @gabegorelick).
Full Changelog: v2.6.0...v2.6.1
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@2.6.1
v2.6.0
Changelog
- Add support for the wildcard principal (#22 reported by @gabegorelick).
Full Changelog: v2.5.1...v2.6.0
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@2.6.0
v2.5.1
v2.4.0
v2.3.0
v2.2.0
v2.1.0
Changelog
- Make
PolicyDocument.addStatement(Statement)
public
Full Changelog: v2.0.0...v2.1.0
Node.js Package
npm install --save-dev @thinkinglabs/aws-iam-policy@2.1.0