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.7.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.

File details

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

File metadata

File hashes

Hashes for cdk-ssm-secure-iam-access-key-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5146f28c77ba90d5119505ebbc36df0a39c5e0aed5b04dce3d46fc3f7846ce6c
MD5 df6b69c1ced36d17ba63ec85ccd72386
BLAKE2b-256 092f044a5b8cac47c98ba58fa2218c626df5d85cd68841bd0a1e88d2966e2b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_ssm_secure_iam_access_key-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f4a37ef9acb2bfb2a810cf0511e169d8a1a5d30b0865a99c26b4c8fb96e95215
MD5 e066c6b778773b249afba142c0ce9c46
BLAKE2b-256 ad22c49d3dde9f6906cf8722780ad7637bb6cf2f796a1e6f1031758c9587b969

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