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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5146f28c77ba90d5119505ebbc36df0a39c5e0aed5b04dce3d46fc3f7846ce6c |
|
MD5 | df6b69c1ced36d17ba63ec85ccd72386 |
|
BLAKE2b-256 | 092f044a5b8cac47c98ba58fa2218c626df5d85cd68841bd0a1e88d2966e2b15 |
Close
Hashes for cdk_ssm_secure_iam_access_key-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a37ef9acb2bfb2a810cf0511e169d8a1a5d30b0865a99c26b4c8fb96e95215 |
|
MD5 | e066c6b778773b249afba142c0ce9c46 |
|
BLAKE2b-256 | ad22c49d3dde9f6906cf8722780ad7637bb6cf2f796a1e6f1031758c9587b969 |