-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_kms_public_key.public_key
returning malformed data
#20595
Comments
- Provision a KMS CMK for account management - Generate a random client ID - Add client to DynamoDB table with placeholder for public key (workaround until hashicorp/terraform-provider-aws#20595 is resolved) - Output details so they can be injected into the account management PaaS app
- Provision a KMS CMK for account management - Generate a random client ID - Add client to DynamoDB table with placeholder for public key (workaround until hashicorp/terraform-provider-aws#20595 is resolved) - Output details so they can be injected into the account management PaaS app
This functionality has been released in v3.56.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
- The Terraform AWS provider bug (hashicorp/terraform-provider-aws#20595) has been fixed, use the `aws_kms_public_key` provider now, as originally planned, and remove the workaround that was added to the pipeline.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
According to the docs the
public_key
attribute should have returned the base64 encoded DER public key as received in thePublicKey
attribute returned by the API call.Actual Behavior
The
public_key
attribute returns a binary value, which doesn't even seem to be the raw DER, as if Ibase64encode
it, it still isn't the correct value :-(I have compared with the output of
aws kms get-public-key --key-id <key-id>
and by viewing the public key in the AWS console.All other attributes returned by this data source seem to be correct.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: