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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef75bbb3dae70559a279c86560f46c46ed82f7de1e9fd2dd71a03b7458341190 |
|
MD5 | 0ee41bba94b9a264930e6c94182441eb |
|
BLAKE2b-256 | 9df1f5dc91f297427c4024bafc168c25218c79496df3fd51370c6c85a4780188 |
Close
Hashes for cdk_ssm_secure_iam_access_key-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91ad830a755a7aa553d65d714e8b1ef2d4c28666a3f8af52e8404caac7fb14e |
|
MD5 | e36d8f47fcbaaff3fc5ef49fd5ab8c14 |
|
BLAKE2b-256 | d1e102de295635ceaa1c36d958d69f93a1d9b4b5d064b3e1253d4d89a37eabd9 |