UNPKG

@ji-constructs/ecs-jwt-keypair

Version:

This is an [AWS CDK](https://aws.amazon.com/cdk/) L3 Construct for creating PEM format keypairs in [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) which can be used for RS256 JWT signing/verification.

21 lines (20 loc) 618 B
import { Secret as EcsSecret } from 'aws-cdk-lib/aws-ecs'; import { IRole } from 'aws-cdk-lib/aws-iam'; import { ISecret } from 'aws-cdk-lib/aws-secretsmanager'; import { KeyPair } from 'cdk-ec2-key-pair'; import { Construct } from 'constructs'; export declare class EcsJwtKeyPair extends Construct { keyPair: KeyPair; secrets: { privateKey: ISecret; publicKey: ISecret; }; ecsSecrets: { privateKey: EcsSecret; publicKey: EcsSecret; }; constructor(scope: Construct, id: string, props?: { keyName?: string; }); grantRead(taskRole: IRole): void; }