Skip to content

Commit

Permalink
Cleanup examples
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 13, 2023
1 parent 1d54375 commit af8f79a
Show file tree
Hide file tree
Showing 59 changed files with 14 additions and 222 deletions.
1 change: 0 additions & 1 deletion examples/documentdb/documentdb-cluster-parametergroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ spec:
- name: tls
value: enabled
region: us-east-2
---
14 changes: 0 additions & 14 deletions examples/documentdb/documentdb-cluster-provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ spec:
instanceClass: db.t3.medium
region: us-east-2
---

apiVersion: docdb.aws.kubedb.com/v1alpha1
kind: Cluster
metadata:
Expand All @@ -35,9 +34,7 @@ spec:
preferredBackupWindow: 07:00-09:00
skipFinalSnapshot: true
dbSubnetGroupName: example

---

apiVersion: v1
kind: Secret
metadata:
Expand All @@ -50,9 +47,7 @@ metadata:
type: Opaque
stringData:
password: "Upboundtest!324225DD"

---

apiVersion: docdb.aws.kubedb.com/v1alpha1
kind: SubnetGroup
metadata:
Expand All @@ -70,7 +65,6 @@ spec:
tags:
Name: My docdb subnet group
---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: VPC
metadata:
Expand All @@ -81,9 +75,7 @@ spec:
cidrBlock: 172.16.0.0/16
tags:
Name: DemoVpc

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -95,9 +87,7 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.10.0/24

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -109,9 +99,7 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.20.0/24

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -123,5 +111,3 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.30.0/24

---
1 change: 0 additions & 1 deletion examples/documentdb/documentdb-cluster-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ spec:
dbClusterIdentifierRef:
name: example
region: us-east-2
---
2 changes: 0 additions & 2 deletions examples/documentdb/documentdb-eventsubscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ metadata:
spec:
forProvider:
region: us-east-2

---
1 change: 0 additions & 1 deletion examples/documentdb/documentdb-global-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ spec:
engine: docdb
engineVersion: 5.0.0
globalClusterIdentifier: global-test
---
2 changes: 0 additions & 2 deletions examples/dynamodb/dynamodb-contibutorinsight.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: ContributorInsights
metadata:
Expand All @@ -12,4 +11,3 @@ spec:
region: us-east-2
tableNameRef:
name: mytable
---
3 changes: 0 additions & 3 deletions examples/dynamodb/dynamodb-globaltable.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# We can deploy globaltable or tablereplica at a time. Both won't work together.
apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: GlobalTable
Expand All @@ -13,5 +12,3 @@ spec:
region: us-east-1
replica:
- regionName: us-east-2

---
4 changes: 0 additions & 4 deletions examples/dynamodb/dynamodb-kinesisstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ spec:
forProvider:
region: us-east-2
shardCount: 1

---

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: KinesisStreamingDestination
metadata:
Expand All @@ -28,5 +26,3 @@ spec:
name: example
tableNameRef:
name: mytable

---
12 changes: 0 additions & 12 deletions examples/dynamodb/dynamodb-table-feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ spec:
# region: us-east-1
# replica:
# - regionName: us-east-2

# ---
apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: TableReplica
Expand All @@ -46,7 +45,6 @@ spec:
globalTableArnRef:
name: mytable
region: us-west-2

---
apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: TableItem
Expand All @@ -70,9 +68,7 @@ spec:
region: us-east-2
tableNameRef:
name: mytable

---

apiVersion: kinesis.aws.kubedb.com/v1alpha1
kind: Stream
metadata:
Expand All @@ -85,9 +81,7 @@ spec:
forProvider:
region: us-east-2
shardCount: 1

---

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: KinesisStreamingDestination
metadata:
Expand All @@ -103,9 +97,7 @@ spec:
name: example
tableNameRef:
name: mytable

---

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: ContributorInsights
metadata:
Expand All @@ -119,9 +111,7 @@ spec:
region: us-east-2
tableNameRef:
name: mytable

---

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: Tag
metadata:
Expand All @@ -136,5 +126,3 @@ spec:
region: us-east-2
resourceArn: arn:aws:dynamodb:us-east-2:452618475015:table/mytable
value: testvalue

---
2 changes: 0 additions & 2 deletions examples/dynamodb/dynamodb-table.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ spec:
streamEnabled: true
streamViewType: NEW_AND_OLD_IMAGES
billingMode: PAY_PER_REQUEST

---
2 changes: 0 additions & 2 deletions examples/dynamodb/dynamodb-tableitem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@ spec:
region: us-east-2
tableNameRef:
name: mytable

---
4 changes: 0 additions & 4 deletions examples/dynamodb/dynamodb-tablereplica.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

# We can deploy globaltable or tablereplica at a time. Both won't work together.

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: TableReplica
metadata:
Expand All @@ -14,5 +12,3 @@ spec:
globalTableArnRef:
name: mytable
region: us-west-2

---
3 changes: 0 additions & 3 deletions examples/dynamodb/dynamodb-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apiVersion: dynamodb.aws.kubedb.com/v1alpha1
kind: Tag
metadata:
Expand All @@ -13,5 +12,3 @@ spec:
region: us-east-2
resourceArn: arn:aws:dynamodb:us-east-2:452618475015:table/mytable
value: testvalue

---
3 changes: 0 additions & 3 deletions examples/ec2/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ spec:
region: us-west-1
routeTableId: rtb-4fbb3ac4
vpcPeeringConnectionId: pcx-45ff3dc1

---

3 changes: 0 additions & 3 deletions examples/ec2/securitygrouprule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ spec:
securityGroupId: sg-123456
toPort: 65535
type: ingress

---

3 changes: 0 additions & 3 deletions examples/ec2/vpcpeeringconnection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ spec:
peerVpcId: ${aws_vpc.bar.id}
region: us-west-1
vpcId: ${aws_vpc.foo.id}

---

12 changes: 0 additions & 12 deletions examples/elasticache/redis-cluster-provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ spec:
- name: example
subnetGroupNameRef:
name: example

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: SecurityGroup
metadata:
Expand All @@ -37,7 +35,6 @@ spec:
vpcIdRef:
name: example
---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: VPC
metadata:
Expand All @@ -48,9 +45,7 @@ spec:
cidrBlock: 172.16.0.0/16
tags:
Name: DemoVpc

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -62,9 +57,7 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.10.0/24

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -76,9 +69,7 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.20.0/24

---

apiVersion: ec2.aws.kubedb.com/v1alpha1
kind: Subnet
metadata:
Expand All @@ -90,9 +81,7 @@ spec:
vpcIdRef:
name: example
cidrBlock: 172.16.30.0/24

---

apiVersion: elasticache.aws.kubedb.com/v1alpha1
kind: SubnetGroup
metadata:
Expand All @@ -108,4 +97,3 @@ spec:
- name: example-subnet1
- name: example-subnet2
- name: example-subnet3
---
1 change: 0 additions & 1 deletion examples/elasticache/redis-parametergroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ spec:
- name: activedefrag
value: "yes"
region: us-east-2
---
1 change: 0 additions & 1 deletion examples/elasticache/redis-replicationgroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ spec:
- us-east-2b
- us-east-2c
region: us-east-2
---
16 changes: 5 additions & 11 deletions examples/elasticache/redis-user.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

## faced this error for the YAML, given below
## faced this error for the YAML, given below
# apply failed: creating ElastiCache User (sample-user): InvalidParameterCombination: A user with Authentication Mode: password, must have at least one password
# status code: 400, request id: 7ffb8623-dac7-4af3-8430-70719f848483:
---
apiVersion: elasticache.aws.kubedb.com/v1alpha1
kind: User
metadata:
Expand All @@ -24,8 +22,6 @@ spec:
writeConnectionSecretToRef:
name: user-conn
namespace: default


---
apiVersion: v1
kind: Secret
Expand All @@ -35,10 +31,8 @@ metadata:
type: Opaque
stringData:
pwd-1: "Upboundtest!123435689"


---
# faced this error for the YAML, given below
# ---
# faced this error for the YAML, given below
# observe failed: cannot get connection details: cannot get connection details: cannot
# expand wildcards: cannot expand wildcards for segments: "passwords[*]": "passwords": unexpected wildcard usage

Expand All @@ -54,9 +48,9 @@ stringData:
# accessString: "on ~* +@all"
# engine: "REDIS"
# region: us-east-2
# authenticationMode:
# authenticationMode:
# - type: no-password-required
# writeConnectionSecretToRef:
# name: user-conn
# namespace: default
---
# ---
1 change: 0 additions & 1 deletion examples/iam/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ spec:
}
]
}
---
1 change: 0 additions & 1 deletion examples/providerconfig/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions examples/providerconfig/providerconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ spec:
name: example-creds
namespace: crossplane-system
key: credentials

---

Loading

0 comments on commit af8f79a

Please sign in to comment.