Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yayami3 committed May 4, 2023
1 parent 9f12df2 commit 7824a2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const project = new awscdk.AwsCdkConstructLibrary({
jsiiVersion: '~5.0.0',
name: 'scheduled-natgateway',
projenrcTs: true,
repositoryUrl: 'https://github.com/yayami3/scheduled-nat-gateway.git',
repositoryUrl: 'https://github.com/yayami3/scheduled-natgateway.git',

// deps: [], /* Runtime dependencies of this module. */
description:
'Scheduled NatGateway at the time you need it' /* The description is just a string that helps people understand the purpose of the package. */,
keywords: ['cdk', 'awscdk', 'aws-cdk', 'nat'],
keywords: ['cdk', 'awscdk', 'aws-cdk', 'nat', 'cost'],
// devDeps: [], /* Build dependencies for this module. */
// packageName: undefined, /* The "name" in package.json. */
stability: 'experimental',
Expand Down
6 changes: 1 addition & 5 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Then, instantiate the construct with the desired parameters:
```typescript
const scheduledNatGateway = new ScheduledNatGateway(scope, 'NatGateway', {
publicSubnetId: 'subnet-12345',
privateSubnetId: 'subnet-67890'
privateSubnetId: 'subnet-67890',
createSchedule: '0 12 * * *',
deleteSchedule: '0 0 * * *',
});
Expand Down Expand Up @@ -61,10 +61,6 @@ const scheduledNatGateway = new ScheduledNatGateway(stack, 'NatGateway', {
deleteSchedule: '0 0 * * ? *',
});

// Output the ID of the NAT Gateway
new cdk.CfnOutput(stack, 'NatGatewayId', {
value: scheduledNatGateway.natGatewayId,
});
```

This example creates a VPC with a public and a private subnet, and then creates a NAT Gateway in the public subnet at noon every day and deletes it at midnight every day. It also adds a route to the NAT Gateway in the private subnet's route table, so that traffic from the private subnet can be routed through the NAT Gateway. The ID of the NAT Gateway is output as a stack output.
3 changes: 2 additions & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7824a2f

Please sign in to comment.