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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411613c669f25f44b22339515cebd8ff8b9b5dbb7b8cd099395393ec17ec1458 |
|
MD5 | 399b4bc7131be4acf75d8112727bb697 |
|
BLAKE2b-256 | dee372ab269d05d7f9d51f3bdffd6bc0a785a4462ef9b1a2d6d5ce00cba359b7 |
Close
Hashes for cdk_ssm_secure_iam_access_key-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b0becfc01a15637ee0a935094fbcd02d4bd486d2251c91506e3bf1a2458a452 |
|
MD5 | ea6812853377802295db89ed7fcb99ac |
|
BLAKE2b-256 | bd57ac2b116c1d87eec4d0c48787b0260e478a42349952bc7e7a996efdd648a0 |