RDS



A managed relational database service that makes it easy to set up, operate, and scale a relational database in the cloud.


Example yaml file:


apiVersion: aws.boundless.software/v1alpha1
kind: Rds
metadata:
  name: example-rds
spec:
  provider:
    region: us-east-1
  globalCluster:
    engine: aurora-mysql
    engineVersion: "8.0"
  clusters:
    cluster1:
      provider:
        region: us-east-2
      engine: aurora-mysql
      username: username
      password: password
      backupRetentionPeriod: 5
      availabilityZones:
        - us-east-2a
        - us-east-2b
        - us-east-2c
      engineVersion: "8.0"
      port: 3306
      storageType: gp2
      autoMinorVersionUpgrade: true
      deletionProtection: true
      instances:
        instance1:
          class: db.r5.xlarge
          allocatedStorage: 100
          storageType: gp2
          autoMinorVersionUpgrade: true
      parameterGroup:
        family: aurora-mysql8.0
        parameters:
          parameter1: "value1"
      subnetGroup:
        subnets:
          - subnet-123456
          - subnet-789012
          - subnet-345678
      tags:
        Environment: production

Inputs


NameTypeDescription
provider*AwsProviderSpecProvider specifies the AWS provider settings. Required
globalClusterGlobalClusterSpecGlobalCluster specifies the global cluster settings. Optional
clusters*map[string]*RdsClusterSpecClusters specifies the cluster settings. Required

RdsClusterSpec


NameTypeDescription
provider*AwsProviderSpecProvider specifies the AWS provider settings for the cluster. Required
engine*stringEngine specifies the database engine (aurora, aurora-mysql, aurora-postgresql, mysql, postgres). Required
username*stringUsername specifies the database username. Required
password*stringPassword specifies the database password. Required
backupRetentionPeriod*int32BackupRetentionPeriod specifies the number of days to retain backups (1-35). Required
availabilityZones*[]stringAvailabilityZones specifies the availability zones to deploy the cluster. Required
engineVersionstringEngineVersion specifies the database engine version. Optional
portint32Port specifies the database port. Optional
storageTypestringStorageType specifies the database storage type (standard, gp2, io1, io2, sc1, st1). Optional
allocatedStorageint32AllocatedStorage specifies the database allocated storage. Optional
autoMinorVersionUpgradeboolAutoMinorVersionUpgrade specifies whether the database auto minor version upgrade. Optional
deletionProtectionboolDeletionProtection specifies whether the database is protected from deletion. Optional
domainIAMRoleNamestringDomainIAMRoleName specifies the database domain iam role name. Optional
publiclyAccessibleboolPublicallyAccessible specifies whether the database is publically accessible. Optional
preferredBackupWindowstringPreferredBackupWindow specifies the database preferred backup window. Optional
preferredMaintenanceWindowstringPreferredMaintenanceWindow specifies the database preferred maintenance window. Optional
vpcSecurityGroupIds[]stringVpcSecurityGroupIds specifies the database vpc security group ids. Optional
instancesmap[string]*RdsInstanceSpecInstances specifies the database instances. Optional
parameterGroup*ParameterGroupSpecParameterGroup specifies the database parameter group. Required
subnetGroup*SubnetGroupSpecSubnetGroup specifies the database subnet group. Required
tagsmap[string]stringTags specifies the database tags. Optional

RdsInstanceSpec


NameTypeDescription
class*stringClass specifies the database instance class. Required
allocatedStorage*int32AllocatedStorage specifies the database instance allocated storage. Required
autoMinorVersionUpgradeboolAutoMinorVersionUpgrade specifies whether the database instance auto minor version upgrade. Optional
storageTypestringStorageType specifies the database instance storage type. Optional
iopsint32Iops specifies the database instance iops. Optional
deletionProtectionboolDeletionProtection specifies whether the database instance is protected from deletion. Optional
storageEncryptedboolStorageEncrypted specifies whether the database instance storage is encrypted. Optional
vpcSecurityGroupIds[]stringVpcSecurityGroupIds specifies the database instance vpc security group ids. Optional
publiclyAccessibleboolPublicallyAccessible specifies whether the database instance is publically accessible. Optional
kmsKeyIdstringKmsKeyId specifies the database instance kms key id. Optional
preferredBackupWindowstringPreferredBackupWindow specifies the database instance preferred backup window. Optional
preferredMaintenanceWindowstringPreferredMaintenanceWindow specifies the database instance preferred maintenance window. Optional
tagsmap[string]stringTags specifies the database instance tags. Optional

GlobalClusterSpec


NameTypeDescription
engine*stringEngine specifies the database engine (aurora, aurora-mysql, aurora-postgresql). Required
engineVersionstringEngineVersion specifies the database engine version. Optional

ParameterGroupSpec


NameTypeDescription
parametersmap[string]stringParameters specifies the database parameter group parameters. Optional
family*stringFamily specifies the database parameter group family. Required

SubnetGroupSpec


NameTypeDescription
subnets*[]stringSubnets specifies the database subnet group subnets (minimum 3). Required

Outputs


NameTypeDescription
globalClusterGlobalClusterStatusStatus provides current condition of global cluster if it exists
clustersmap[string]*RdsClusterStatusStatus provides current condition of clusters if they exist

RdsClusterStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides current condition of cluster
identifierstringIdentifier provides the cluster identifier
endpointstringEndpoint provides the cluster endpoint
readerEndpointstringReaderEndpoint provides the cluster reader endpoint
instancesmap[string]*RdsInstanceStatusInstances provides the current condition of instances if they exist

GlobalClusterStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides current condition of global cluster
identifierstringIdentifier provides the global cluster identifier
arnstringArn provides the global cluster ARN
engineVersionstringEngineVersion provides the global cluster engine version
enginestringEngine provides the global cluster engine

EndpointStatus


NameTypeDescription
addressstringAddress provides the endpoint address
portint32Port provides the endpoint port
hostedZoneIdstringHostedZoneId provides the endpoint hosted zone id

ParameterGroupStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides current condition of parameter group
arnstringArn provides the parameter group ARN
familystringFamily provides the parameter group family
namestringName provides the parameter group name
parametersmap[string]stringParameters provides the parameter group parameters

SubnetGroupStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides current condition of subnet group
arnstringArn provides the subnet group ARN
namestringName provides the subnet group name
subnets[]stringSubnets provides the subnet group subnets

RdsInstanceStatus


NameTypeDescription
conditionmetav1.ConditionCondition provides current condition of instance
arnstringArn provides the instance ARN
endpointEndpointStatusEndpoint provides the instance endpoint
classstringClass provides the instance class
enginestringEngine provides the instance engine
engineVersionstringEngineVersion provides the instance engine version
storageEncryptedboolStorageEncrypted specifies whether the database storage is encrypted
deletionProtectionboolDeletionProtection specifies whether the database instance is protected from deletion
publiclyAccessibleboolPublicallyAccessible specifies whether the database instance is publically accessible
preferredBackupWindowstringPreferredBackupWindow specifies the database instance preferred backup window
autoMinorVersionUpgradeboolAutoMinorVersionUpgrade specifies whether the database instance auto minor version upgrade
vpcSecurityGroupIds[]stringVpcSecurityGroupIds specifies the database instance vpc security group ids
allocatedStorageint32AllocatedStorage specifies the database instance allocated storage
storageTypestringStorageType specifies the database instance storage type
kmsKeyIdstringKmsKeyId specifies the database instance kms key id



Previous

<< IAM

Next

KMS >>