Thread
#aws
    g

    gorgeous-ability-71963

    2 months ago
    Hi! Does anyone know how to export an accessKey
    encryptedSecret
    on the stack outputs? I’ve tried this:
    const lbUser = new aws.iam.User("lbUser", {path: "/system/"});
    const lbAccessKey = new aws.iam.AccessKey("lbAccessKey", {
        user: lbUser.name,
    });
    export const secret = lbAccessKey.encryptedSecret;
    But this does not exports the secret. The
    pgpKey
    parameter is required? If so, how do I generate one?
    The solution for this is using
    secret
    instead of
    encryptedSecret
    .