Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkershner6/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
https://github.com/dkershner6/cdk-ssm-secure-iam-access-key
aws cdk cdk-constructs hacktoberfest iam ssm
Last synced: 29 days ago
JSON representation
Creates an IAM Access Key for a provided IAM User and stores the result in an SSM SecureString Parameter
- Host: GitHub
- URL: https://github.com/dkershner6/cdk-ssm-secure-iam-access-key
- Owner: dkershner6
- License: apache-2.0
- Created: 2023-10-28T15:53:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-07T02:03:29.000Z (11 months ago)
- Last Synced: 2024-04-26T14:03:43.282Z (7 months ago)
- Topics: aws, cdk, cdk-constructs, hacktoberfest, iam, ssm
- Language: TypeScript
- Homepage: https://constructs.dev/packages/cdk-ssm-secure-iam-access-key
- Size: 6.31 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
[NPM Package](https://www.npmjs.com/package/cdk-ssm-secure-iam-access-key)
[![View on Construct Hub](https://constructs.dev/badge?package=cdk-ssm-secure-iam-access-key)](https://constructs.dev/packages/cdk-ssm-secure-iam-access-key)
## Installation
`npm i -D cdk-ssm-secure-iam-access-key`
## Usage
```typescript
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",
}
);
```