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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6de6d250042263f634c8ccf3f5338e427336cb0ea0516dc7ad0c94d3685144f |
|
MD5 | a1f4d93d994caaccc5ac45f343e4d93d |
|
BLAKE2b-256 | d0139d20adb6549049e74270d1e21105fb10d7254373884ed8c1ee2c52c65dc5 |
Close
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 |