Open VishnuPrasad-Xyram opened 1 year ago
can you check status for securityGroup ? think in jet provider it is simply id status.atProvider.id
@haarchri Yes, it's status.atProvider.id in jet provider. Am able to patch the securityGroupID to the elastic search resource, When I describe Domain.elasticsearch.aws.jet.crossplane.io/NAME I could see the securityGroupIds being passed to the elasticSearch as per the image attached. But when I see in the AWS console, the elasticSearch resource is taking the default securityGroup-ID.
It's same for status.atProvider.id and also for status.atProvider.securityGroupID.
But, when we hardcode the securityGroupIds we get what we expect. But I am not able to dynamically create and patch the securityGroupId to the elasticsearch.aws.jet.crossplane.io.
@haarchri
We tried with both provider-aws and provider-jet-aws for securityGroups.
And patched the IDs to elasticsearch.aws.jet.crossplane.io using status.atProvider.id
for provider-jet-aws and status.atProvider.securityGroupID
for provider-aws.
In both cases securityGroup-ID is being patched to composite resource and we were able to refer and patch those IDs to elasticsearch.aws.jet.crossplane.io which I could see when I describe the Domain.elasticsearch.aws.jet.crossplane.io/NAME as mentioned in the screenshot attached in above comment.
In Both the cases(status.atProvider.id and also for status.atProvider.securityGroupID) the elasticsearch.aws.jet.crossplane.io resource is getting created using the default securityGroup.
Thanks in Advance
What happened?
I created securityGroup as part of the composition and patched securityGroup-ID to composite resource using below patch
Then patching securityGroup-ID to elasticsearch.aws.jet.crossplane.io using below patch
After that when I describe Domain.elasticsearch.aws.jet.crossplane.io/NAME, I could see the correct securityGroup-ID being patched to the resource, but when I checked in the AWS console it took the default securityGroup-ID while creating the elasticSearch Domain.
What environment did it happen in?