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.4.tar.gz (2.1 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.4-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cdk-ssm-secure-iam-access-key-0.0.4.tar.gz
Algorithm Hash digest
SHA256 77ad6a56ad9d7baaa23f8eff65d5d83e536c9b628cc2115980469c45c34ec3da
MD5 82f15c43b6b3520f29d350220c63525f
BLAKE2b-256 a69ea7c920a18784e69b7b6af68e66235b68c2ea4959b286ec81e2e0f3e0f851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_ssm_secure_iam_access_key-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 16e2425adb4847463d26b195d61e5958861dbb52e5db91acf378991c4e18c492
MD5 32adfcea374cdb6725ef46a95393539a
BLAKE2b-256 84ead845ea1fec805342d099629ec807f953ffc86e200da24be3436d289ea2c0

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