-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Describe the bug
The AWS Secret Manager enforces a UUID and that clashes with secrets created with terraform-aws-provider
To Reproduce
Steps to reproduce the behavior:
- Create a secret using the terraform AWS provider - or manually create a secret with a VersionId that's a valid random string
- Try to PushSecret using the previously created secret to bump the version and the value
Expected behavior
The secret version in AWS SSM is bumped with a new value.
Screenshots
Instead, we get an error like:
set secret failed: could not write remote ref token to target secretstore external-secrets: expected secret version in AWS SSM to be a UUID but got 'terraform-20250627043834191900000095'
Additional context
The issue is created because
| oldVersion, ok := n.SetString(strings.ReplaceAll(*id, "-", ""), 16) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Type
Projects
Status
Done