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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ad6a56ad9d7baaa23f8eff65d5d83e536c9b628cc2115980469c45c34ec3da |
|
MD5 | 82f15c43b6b3520f29d350220c63525f |
|
BLAKE2b-256 | a69ea7c920a18784e69b7b6af68e66235b68c2ea4959b286ec81e2e0f3e0f851 |
Close
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 |