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
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
Built Distribution
Close
Hashes for cdk-ssm-secure-iam-access-key-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a884eaec08bb8116f5bc903e3f2cf7bfb7e2812a06d0f220f7a9641876ebb61 |
|
MD5 | 311235235b4e1d6f63edf4d83f2c5ace |
|
BLAKE2b-256 | ff538c66d23bef9bf02414876aa043dadb7b0eba14f1ab3eb210eebe1c755995 |
Close
Hashes for cdk_ssm_secure_iam_access_key-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 285d3195224b5b2ced8224390fc330ccaf7a85a03293b64ccef9e3cae2fe769e |
|
MD5 | 3451d1ed70f1c00f93472fdd2a4d389e |
|
BLAKE2b-256 | 2ddb55413b9254395a5b94945717047b3ca9dfc4f0615492dcccce39225cf69b |