Skip to content

Commit

Permalink
Add v1beta2 example for Connector.transfer
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf authored and ulucinar committed Jun 13, 2024
1 parent e70c784 commit 1bae919
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions examples/transfer/v1beta2/connector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: transfer.aws.upbound.io/v1beta2
kind: Connector
metadata:
annotations:
meta.upbound.io/example-id: transfer/v1beta2/connector
labels:
testing.upbound.io/example-name: sftp-connector-role
name: sftp-connector
spec:
forProvider:
accessRoleSelector:
matchLabels:
testing.upbound.io/example-name: sftp-connector-role
sftpConfig:
trustedHostKeys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDk2Dc99b3U4AXp4QHrgENyouPDEOIUEuYh+qPpVgzkWKEuTmXppfz1vWh3Tq4xIfef5PGfrBzrjg1QOOEO0xFSquJ33fZhWTt8sWDosFYa7dS9ekYDf8p/m7jYTxeidSDo8kxdCYZap6ED/8bMz4za9GkIF/T4rTr/jqi8BxoY3hnocpfJ9y5zqhYxeufwDFkABX6yM/tniAKEGWozjVnvT7XZMdobiHW5B3Iisnx+uRkudvrjT/pHhvEy8mecDQkQaDrqaRvpemn5nIamB7fwFGxSNCxSYehz0k3aBtNswLLhcCbtseatDLtBhSjEKcj2nngYHVGb9UES1cdEaSEK1LZUndha6/3+JymG15/9+yrhgmJ+9HLH/yiyvU1hC/8KP9NiEs9svsvZGzkAVCsKe0o1ZZ+QWqWNc77fPxktfPbCpIOm+kKRXz16yxW9DphczOe8hj+uCPWIdPHfLEpuY48ygT2kM+LBPQtfxm/Jg4q5QLnHWNx0ZhNhKfxph5s="
userSecretIdSelector:
matchLabels:
testing.upbound.io/example-name: sftp-connector
region: us-west-1
url: sftp://example.com
---
apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: transfer/v1beta2/connector
labels:
testing.upbound.io/example-name: sftp-connector-role
name: sftp-connector-role
spec:
forProvider:
assumeRolePolicy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "transfer.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
---
apiVersion: secretsmanager.aws.upbound.io/v1beta1
kind: Secret
metadata:
name: sftp-connector
annotations:
meta.upbound.io/example-id: transfer/v1beta2/connector
uptest.upbound.io/update-parameter: '{"tags":{"updated-by":"crossplane"}}'
labels:
testing.upbound.io/example-name: sftp-connector
spec:
forProvider:
name: sftp-connector-${Rand.RFC1123Subdomain}
region: us-west-1
recoveryWindowInDays: 0
---
apiVersion: secretsmanager.aws.upbound.io/v1beta1
kind: SecretVersion
metadata:
name: sftp-connector
annotations:
meta.upbound.io/example-id: transfer/v1beta2/connector
labels:
testing.upbound.io/example-name: sftp-connector
spec:
forProvider:
region: us-west-1
secretIdSelector:
matchLabels:
testing.upbound.io/example-name: sftp-connector
secretStringSecretRef:
key: key
name: sftp-connector
namespace: upbound-system
---
apiVersion: v1
kind: Secret
metadata:
annotations:
meta.upbound.io/example-id: transfer/v1beta2/connector
name: sftp-connector
namespace: upbound-system
type: Opaque
stringData:
key: |
{
"Username": "test",
"PrivateKey": "-----BEGIN OPENSSH PRIVATE KEY-----b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcnNhAAAAAwEAAQAAAYEA5Ng3PfW91OAF6eEB64BDcqLjwxDiFBLmIfqj6VYM5FihLk5l6aX89b1od06uMSH3n+Txn6wc644NUDjhDtMRUqrid932YVk7fLFg6LBWGu3UvXpGA3/Kf5u42E8XonUg6PJMXQmGWqehA//GzM+M2vRpCBf0+K06/46ovAcaGN4Z6HKXyfcuc6oWMXrn8AxZAAV+sjP7Z4gChBlqM41Z70+12THaG4h1uQdyIrJ8frkZLnb640/6R4bxMvJnnA0JEGg66mkb6Xpp+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2NhbA==-----END OPENSSH PRIVATE KEY-----"
}

0 comments on commit 1bae919

Please sign in to comment.