Skip to content

Commit

Permalink
fix: minify policy documents
Browse files Browse the repository at this point in the history
Policy documents are minified to provide to assist with working within the policy character limits.
  • Loading branch information
CameronHall committed Nov 27, 2023
1 parent 416dbaa commit 37e4b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws-provider/aws-organization-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AwsOrganizationWriter {
Name: resource.policyName,
Description: resource.description!,
Type: 'SERVICE_CONTROL_POLICY',
Content: JSON.stringify(resource.policyDocument, null, 2),
Content: JSON.stringify(resource.policyDocument, null, 0),
};
const response = await this.organizationService.createPolicy(createPolicyRequest).promise();
const scpId = response.Policy!.PolicySummary!.Id!;
Expand Down Expand Up @@ -127,7 +127,7 @@ export class AwsOrganizationWriter {
PolicyId: physicalId,
Name: resource.policyName,
Description: resource.description,
Content: JSON.stringify(resource.policyDocument, null, 2),
Content: JSON.stringify(resource.policyDocument, null, 0),
};
await this.organizationService.updatePolicy(updatePolicyRequest).promise();
});
Expand Down

0 comments on commit 37e4b33

Please sign in to comment.