Closed pixie79 closed 1 year ago
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.
Hi @pixie79 , thanks for the detailed report.
Looks like the endpoint for kms
is still missing in your config - getting the following error when trying to deploy your sample:
│ Error: creating KMS Key: UnrecognizedClientException: The security token included in the request is invalid.
│ status code: 400, request id: e2c55e39-2ab7-4af1-9939-197052b6e370
Does it work if you add the following entry to your endpoints
section in the provider?
kms = "http://localhost:4566"
Btw, we usually recommend using the tflocal
command line, it does all the wiring of endpoints under the covers, so you don't need to configure them manually: https://github.com/localstack/terraform-local
Hello 👋! It looks like this issue hasn’t been active in longer than two months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
Is there an existing issue for this?
Current Behavior
When using Terraform to create a KMS key with a policy every time I get the error
Expected Behavior
It should create the key with the attached policy as it is valid when run against AWS.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack
Terraform
main.tf
terraform init terraform apply
Key 1 fails to create as it has a policy, Key 2 creates fine.
Environment