UNPKG

cdk-ssm-secure-iam-access-key

Version:

Creates an IAM Access Key for a provided IAM User and stores the result in an SSM SecureString Parameter

9 lines (8 loc) 264 B
/** * @internal * * Returns a date that is corrected for clock skew. * * @param systemClockOffset The offset of the system clock in milliseconds. */ export const getSkewCorrectedDate = (systemClockOffset: number) => new Date(Date.now() + systemClockOffset);