-
Notifications
You must be signed in to change notification settings - Fork 132
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
Elasticache ReplicationGroup connection secret is empty #1043
Comments
Thanks for the bug report @akunafin. Could you please include a complete manifest that shows the problem? That will make it much easier to reproduce. Based on a very quick look at the elasitcache replication group terraform provider docs, it looks like |
Thanks for your reply @mbbush! The main problem is not that auth_token is an empty string. The main problem is that there is no connection endpoint in this secret. For now I had to hardcode this endpoint in the manifest of the application, but that's definitely not the way it should work. I want to reference this secret in the manifest of my application in order for it to connect to the this cluster. This is a ReplicationGroup manifest that I'm using:
Manifest of the secret object created:
|
By default the connection secrets only contain values designated as sensitive by terraform. If you also want a non-sensitive value in your secret, like the endpoint, take a look at https://docs.crossplane.io/knowledge-base/guides/connection-details/ I think I found another example somewhere of explicitly how to get values from the status into the composition's secret, but |
@mbbush thanks for a useful reference! I managed to achieve what I wanted with the composition. |
I agree with @akunafin it keeps all the things you need to connect to the instance together in a practical way and is the same way other providers use this field. The CRD spec even says that these kinds of things should be published to this secret as specified here |
This issue covered in this PR #1322 |
What happened?
I'm creating an AWS Elasticache replication group and expect connection endpoint to be published into a secret with the help of publishConnectionDetailsTo setting. I see that secret is successfully created, but the only data that it has:
data: attribute.auth_token: ""
How can we reproduce it?
Create an elasticache replicationgroup using xpkg.upbound.io/upbound/provider-aws-elasticache:v0.46.1.
What environment did it happen in?
The text was updated successfully, but these errors were encountered: