Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code example in README doesn't deploy #77

Open
ataraxia937 opened this issue Nov 28, 2022 · 0 comments
Open

code example in README doesn't deploy #77

ataraxia937 opened this issue Nov 28, 2022 · 0 comments

Comments

@ataraxia937
Copy link
Contributor

Describe the bug
I used this library as shown in the README, and it didn't deploy because of a missing / invalid KMS key.

To Reproduce

  1. Write code like this:
new SesSmtpCredentials(this, 'CsatSesSmtpCredentials', {
  iamUserName: 'csatmail',
});
  1. Get error when deploying:

Stack Deployments Failed: Error: The stack named CsatStack failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: Error: An error occurred (InvalidParameterException) when calling the CreateSecret operation: The operation failed because of an invalid KMS key: Invalid keyId aws/secretsmanager (Service: AWSKMS; Status Code: 400; Error Code: NotFoundException; Request ID: 7d8aa148-df6c-4f7b-9841-9a17dc591484; Proxy: null)

Expected behavior
Code like in the README should work. Or the README should be changed to reflect actual behavior

Additional context
This works:

const csatKey = new kms.Key(this, 'CsatKey');

new SesSmtpCredentials(this, 'CsatSesSmtpCredentials', {
  iamUserName: 'csatmail',
  kmsKey: csatKey,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant