Skip to content

Commit

Permalink
Description and code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrueger committed Feb 16, 2022
1 parent f05d083 commit 43a4c2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
defaultReleaseBranch: 'main',
name: 'cdk-fargate-public-dns',
repositoryUrl: 'https://github.com/raykrueger/cdk-fargate-public-dns.git',
description: 'An AWS CDK module that listens for ECS Tasks to enter RUNNING state and then updates a Route 53 hosted zone with the public IP address attached to the task.',

// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class PublicIPSupport extends Construct {
func.addToRolePolicy(
new PolicyStatement({
actions: ['route53:ChangeResourceRecordSets', 'route53:ListResourceRecordSets'],
resources: [`arn:aws:route53:::hostedzone/${dnsConfig?.hostzedZone}`],
resources: [`arn:aws:route53:::hostedzone/${dnsConfig.hostzedZone}`],
}),
);
}
Expand Down
2 changes: 2 additions & 0 deletions test/public-ip-support.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ function buildStack(props?: { assumedRole?: string }): cdk.Stack {

describe('PublicIPSupport', () => {

/*
test('Print it out', () => {
console.log(JSON.stringify(Template.fromStack(buildStack({ assumedRole: 'FINDTHISROLE' })).toJSON(), null, 2));
});
*/

test('Function with assumed role', () => {
const stack = buildStack({ assumedRole: 'THE ROLE' });
Expand Down

0 comments on commit 43a4c2e

Please sign in to comment.