Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding composition for aws aurora db & proxy #137

Merged
merged 25 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1a8b947
Adding composition for aws aurora db
bswjitbabu Aug 3, 2023
dd2daa0
Updating connection secrets
biswajitbabu Aug 15, 2023
1a2bf1a
Added default based on cluster behaviour
biswajitbabu Aug 18, 2023
2e6dc17
Added the readme for aurora
biswajitbabu Sep 5, 2023
88c5b1a
Added the readme for aurora
biswajitbabu Sep 5, 2023
43873f3
Updated readme for aurora
biswajitbabu Sep 6, 2023
85aa6cc
Updated readme for aurora
biswajitbabu Sep 6, 2023
ecd0ae8
Readme updated: review comments
biswajitbabu Sep 8, 2023
12254cc
Readme updated: cli commands
biswajitbabu Sep 8, 2023
06d1c5f
committing the json for roles
biswajitbabu Sep 8, 2023
8a034eb
Updated based on the review
biswajitbabu Sep 8, 2023
3c241d7
Updated based on the review
biswajitbabu Sep 8, 2023
789c3e1
Updated based on the review
biswajitbabu Sep 8, 2023
46112c2
Updated based on the review
biswajitbabu Sep 8, 2023
17431fd
Updated based on the review
biswajitbabu Sep 8, 2023
2e669c4
Updated README based on the review
biswajitbabu Sep 10, 2023
facb81e
Updated README based on the review
biswajitbabu Sep 10, 2023
050b99b
Updated README based on the review
biswajitbabu Sep 10, 2023
43f84d5
Updated README based on the review
biswajitbabu Sep 10, 2023
b8e3a4b
Updated README.
biswajitbabu Sep 11, 2023
03e3077
Updated based on the PR review comment
biswajitbabu Sep 11, 2023
697fa67
Updated based on the PR review comment
biswajitbabu Sep 11, 2023
2a107e5
Updated xrd and composition
biswajitbabu Sep 14, 2023
82e6db9
Updated xrd and composition
biswajitbabu Sep 14, 2023
5baf7f2
Updated README.
biswajitbabu Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
551 changes: 551 additions & 0 deletions compositions/upbound-aws-provider/aurora/aurora.yaml

Large diffs are not rendered by default.

230 changes: 230 additions & 0 deletions compositions/upbound-aws-provider/aurora/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: xauroras.db.awsblueprint.io
spec:
group: db.awsblueprint.io
names:
kind: XAurora
plural: xauroras
claimNames:
kind: Aurora
plural: auroras
connectionSecretKeys:
- clusterUsername
- proxyEndpoint
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
description: RelationalDatabase is the Schema for the Aurora database
API. Provides a Aurora Cluster.
properties:
spec:
type: object
description: "Aurora Cluster with Proxy Specification"
properties:
networkConfig:
description: parameter for Aurora network configuration
type: object
properties:
subnetIds:
type: array
items:
type: string
minItems: 1
vpcId:
type: string
allowedPort:
type: number
default: 5432
allowedCidrBlocks:
type: array
items:
type: string
minItems: 1
allowedSecurityGroupId:
type: string
required:
- subnetIds
- vpcId
resourceConfig:
description: parameter for Aurora general configuration
resource.
type: object
properties:
providerConfigName:
type: string
region:
type: string
deletionPolicy:
description: Defaults to Delete
enum:
- Delete
- Orphan
type: string
default: Delete
parameterGroupFamily:
nabuskey marked this conversation as resolved.
Show resolved Hide resolved
description: Parameter group family name.
type: string
default: aurora-postgresql15
databaseName:
description: name of the aurora database
type: string
engine:
description: engine type
type: string
default: aurora-postgresql
engineVersion:
description: engine version
type: string
default: "15.2"
masterUsername:
description: cluster user name
type: string
default: adminuser
skipFinalSnapshot:
description: Whether a final DB snapshot is created before the DB cluster is deleted
type: boolean
default: true
storageType:
type: string
default: aurora-iopt1
availabilityZones:
type: array
items:
type: string
finalDBSnapshotIdentifier:
type: string
backupRetentionPeriod:
type: integer
default: 7
preferredBackupWindow:
type: string
default: "02:00-03:00"
preferredMaintenanceWindow:
type: string
default: "sun:04:00-sun:05:00"
clusterInstanceClass:
type: string
default: db.r6g.large
performanceInsightsEnabled:
description: Specifies whether Performance Insights is enabled or not.
type: boolean
default: true
monitoringRoleArn:
type: string
monitoringInterval:
type: integer
default: 60
performanceInsightsRetentionPeriod:
type: integer
default: 7
enabledCloudwatchLogsExports:
type: array
items:
type: string
applyImmediately:
type: boolean
default: true
snapshotIdentifier:
type: string
finalSnapshotIdentifier:
type: string
tags:
additionalProperties:
type: string
description: Key-value map of resource tags.
type: object
required:
- providerConfigName
- region
- monitoringRoleArn
proxyConfig:
description: parameter for Aurora Proxy configuration
type: object
properties:
iamAuth:
enum:
- REQUIRED
- DISABLED
type: string
default: REQUIRED
description: Whether to require or disallow IAM authentication for connections.
debugLogging:
description: Parameter to set whether the proxy includes detailed
information about SQL statements in its logs.
type: boolean
default: true
idleClientTimeout:
description: Parameter to set the number of seconds that a connection
to the proxy can be inactive before the proxy disconnects it.
type: number
default: 3600
proxyRoleArn:
description: Role Arn for the database proxy.
type: string
# secretArn:
# description: Arn of the db credential secret.
# type: string
connectionBorrowTimeout:
description: The number of seconds for a proxy to wait for a connection
to become available in the connection pool.
type: number
default: 120
maxIdleConnectionsPercent:
description: Controls how actively the proxy closes idle database
connections in the connection pool.
type: number
default: 50
maxConnectionsPercent:
description: The maximum size of the connection pool for each target
in a target group.
type: number
default: 50
initQuery:
description: One or more SQL statements for the proxy to run when
opening each new database connection.
type: string
required:
- proxyRoleArn
status:
properties:
subnetGroupArn:
type: string
subnetGroupName:
type: string
securityGroupId:
type: string
securityGroupArn:
type: string
securityGroupName:
type: string
clusterParameterGroupName:
type: string
clusterParameterGroupArn:
type: string
clusterIdentifier:
type: string
clusterArn:
type: string
clusterReaderEndpoint:
type: string
clusterEndpoint:
type: string
clusterMasterSecretArn:
type: string
clusterUsername:
type: string
proxyArn:
type: string
proxyEndpoint:
type: string
defaultProxyTgName:
type: string
targetGroupName:
type: string
type: object
type: object
5 changes: 5 additions & 0 deletions compositions/upbound-aws-provider/aurora/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- definition.yaml
- aurora.yaml
biswajitbabu marked this conversation as resolved.
Show resolved Hide resolved
biswajitbabu marked this conversation as resolved.
Show resolved Hide resolved
Empty file.
biswajitbabu marked this conversation as resolved.
Show resolved Hide resolved
Empty file.
Loading