Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change index exports to cdkv2 #104

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ It takes an object, where:

## CDK v1 and v2

CDK v1:
CDK v2:
```typescript
import { SopsSecretsManager } from 'sops-secretsmanager-cdk';
// or
import { SopsSecretsManager } from 'sops-secretsmanager-cdk/cdkv1';
import { SopsSecretsManager } from 'sops-secretsmanager-cdk/cdkv2';
```

CDK v2:
CDK v1:
```typescript
import { SopsSecretsManager } from 'sops-secretsmanager-cdk/cdkv2';
import { SopsSecretsManager } from 'sops-secretsmanager-cdk/cdkv1';
```

## Implementation
Expand Down
2 changes: 1 addition & 1 deletion example/sops-example/lib/sops-example-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as secretsmanager from '@aws-cdk/aws-secretsmanager';
import * as lambda from '@aws-cdk/aws-lambda';
import * as customResource from '@aws-cdk/custom-resources';

import { SopsSecretsManager } from './sops-secretsmanager-cdk-dev';
import { SopsSecretsManager } from './sops-secretsmanager-cdk-dev/cdkv1';

export class SopsExampleStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
Expand Down
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// For now, the exports from index.ts are CDK v1
export * from './cdkv1';
export * from './cdkv2';