Skip to main content

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

Project description

cdk-ssm-secure-iam-access-key

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

NPM Package

View on Construct Hub

Installation

npm i -D cdk-ssm-secure-iam-access-key

Usage

        const user = new iam.User(this, "SMTPUser");

        user.addToPolicy(
            new iam.PolicyStatement({
                effect: iam.Effect.ALLOW,
                actions: ["ses:SendRawEmail"],
                resources: ["*"],
            })
        );

        new SSMSecureIAMAccessKey(this, "SMTPUserCredentials", {
            parameterName: "/smtpCredentials",
            user,
        });

        // JSON.stringified {accessKeyId: "...", secretAccessKey: "..."}
        return ssm.StringParameter.fromSecureStringParameterAttributes(
            this,
            "SMTPUserCredentialsSSM",
            {
                parameterName: "/smtpCredentials",
            }
        );

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-ssm-secure-iam-access-key-0.0.6.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_ssm_secure_iam_access_key-0.0.6-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file cdk-ssm-secure-iam-access-key-0.0.6.tar.gz.

File metadata

File hashes

Hashes for cdk-ssm-secure-iam-access-key-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e6de6d250042263f634c8ccf3f5338e427336cb0ea0516dc7ad0c94d3685144f
MD5 a1f4d93d994caaccc5ac45f343e4d93d
BLAKE2b-256 d0139d20adb6549049e74270d1e21105fb10d7254373884ed8c1ee2c52c65dc5

See more details on using hashes here.

File details

Details for the file cdk_ssm_secure_iam_access_key-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_ssm_secure_iam_access_key-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fb580e2d7cca62db6e1404edf50463f3fb2a0a8d6510891f37af5ff5cccc28db
MD5 e9a99cce949e235d8e7a43d32f8b667e
BLAKE2b-256 7467ce1d6464fe2b155fef2c785cbcf7f92d8114f46337208502a72033132a19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page