What happened?
I created securityGroup as part of the composition and patched securityGroup-ID to composite resource using below patch
- type: ToCompositeFieldPath
fromFieldPath: status.atProvider.securityGroupID
toFieldPath: status.securityGroupID
policy:
fromFieldPath: Required
Then patching securityGroup-ID to elasticsearch.aws.jet.crossplane.io using below patch
- type: FromCompositeFieldPath
fromFieldPath: status.securityGroupID
toFieldPath: spec.forProvider.vpcOptions[0].securityGroupIds[0]
policy:
fromFieldPath: Required
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?
- Crossplane version: crossplane/crossplane:v1.9.0
- Crossplane provider: crossplane-contrib/provider-jet-aws@v0.5.0-preview
- apiVersion: elasticsearch.aws.jet.crossplane.io/v1alpha1
- kind: Domain
- Cloud provider : AWS
- Kubernetes version : 1.22
- Kubernetes distribution : Amazon EKS