kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
name: xnetworks.elasticache.aws.platform.upbound.io
creationTimestamp: null
labels:
provider: aws
spec:
compositeTypeRef:
apiVersion: elasticache.aws.platform.upbound.io/v1alpha1
kind: XNetwork
mode: Pipeline
pipeline:
- step: patch-and-transform
functionRef:
name: crossplane-contrib-function-patch-and-transform
input:
apiVersion: pt.fn.crossplane.io/v1beta1
kind: Resources
resources:
- base:
apiVersion: aws.platform.upbound.io/v1alpha1
kind: XNetwork
name: elasticache-network-foundation
patches:
- fromFieldPath: spec.parameters.providerConfigName
toFieldPath: spec.parameters.providerConfigName
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.deletionPolicy
toFieldPath: spec.parameters.deletionPolicy
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.id
toFieldPath: spec.parameters.id
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.region
toFieldPath: spec.parameters.region
type: FromCompositeFieldPath
- fromFieldPath: status.vpcId
toFieldPath: status.elasticacheNetwork.vpcId
type: ToCompositeFieldPath
- fromFieldPath: status.publicSubnetIds
toFieldPath: status.elasticacheNetwork.publicSubnetIds
type: ToCompositeFieldPath
- fromFieldPath: status.privateSubnetIds
toFieldPath: status.elasticacheNetwork.privateSubnetIds
type: ToCompositeFieldPath
- fromFieldPath: status.securityGroupIds
toFieldPath: status.elasticacheNetwork.securityGroupIds
type: ToCompositeFieldPath
- base:
apiVersion: elasticache.aws.upbound.io/v1beta1
kind: SubnetGroup
name: subnet-group
patches:
- fromFieldPath: spec.parameters.providerConfigName
toFieldPath: spec.providerConfigRef.name
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.deletionPolicy
toFieldPath: spec.deletionPolicy
type: FromCompositeFieldPath
- fromFieldPath: spec.parameters.region
toFieldPath: spec.forProvider.region
type: FromCompositeFieldPath
- fromFieldPath: status.elasticacheNetwork.privateSubnetIds
policy:
fromFieldPath: Required
toFieldPath: spec.forProvider.subnetIds
type: FromCompositeFieldPath
- fromFieldPath: status.atProvider.arn
toFieldPath: status.elasticacheSubnetGroup.arn
type: ToCompositeFieldPath
- fromFieldPath: status.atProvider.description
toFieldPath: status.elasticacheSubnetGroup.description
type: ToCompositeFieldPath
- fromFieldPath: status.atProvider.id
toFieldPath: status.elasticacheSubnetGroup.id
type: ToCompositeFieldPath
- fromFieldPath: status.atProvider.subnetIds
toFieldPath: status.elasticacheSubnetGroup.subnetIds
type: ToCompositeFieldPath
- fromFieldPath: status.atProvider.tags
toFieldPath: status.elasticacheSubnetGroup.tags
type: ToCompositeFieldPath
- fromFieldPath: statys.atProvider.tagsAll
toFieldPath: status.elasticacheSubnetGroup.tagsAll
type: ToCompositeFieldPath
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.